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: Debug> MapFn<I> for fn(_: I) -> O

Source§

type Output = O

Source§

fn apply(&self, x: I) -> Self::Output

Implementors§