Trait ApplyOn

Source
pub trait ApplyOn<T, F> {
    type Output;

    // Required method
    fn apply<U>(self, f: F) -> Self::Output
       where F: FnMut(T) -> U;
}

Required Associated Types§

Required Methods§

Source

fn apply<U>(self, f: F) -> Self::Output
where F: FnMut(T) -> U,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, F, S> ApplyOn<T, F> for S
where S: Iterator<Item = T>,

Source§

type Output = Map<S, F>