rustmax::proptest::strategy::statics

Trait MapFn

Source
pub trait MapFn<T> {
    type Output: Debug;

    // Required method
    fn apply(&self, t: T) -> Self::Output;
}
Expand description

Essentially Fn (T) -> Output.

Required Associated Types§

Required Methods§

Source

fn apply(&self, t: T) -> Self::Output

Map T to Output.

Implementations on Foreign Types§

Source§

impl<I, O> MapFn<I> for fn(_: I) -> O
where O: Debug,

Source§

type Output = O

Source§

fn apply(&self, x: I) -> <fn(_: I) -> O as MapFn<I>>::Output

Implementors§