MapFn

Trait MapFn 

Source
pub trait MapFn<T>: OptPartialEq + OptDebug {
    type Output;

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

Local definition of the unstable FnOnce trait, allowing users of this crate to implement mapping functions that are PartialEq and Debug for observability purposes.

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<T, F, O> MapFn<T> for F
where F: FnOnce(T) -> O,

Available on non-crate feature task-equality and non-crate feature task-debug only.