Trait proptest::strategy::statics::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§