Trait Apply

Source
pub trait Apply<T> {
    // Required methods
    fn apply(self, action: impl FnMut(T));
    fn apply2<U, Second: IntoIterator<Item = U>>(
        self,
        second: Second,
        action: impl FnMut(T, U),
    );
}

Required Methods§

Source

fn apply(self, action: impl FnMut(T))

Source

fn apply2<U, Second: IntoIterator<Item = U>>( self, second: Second, action: impl 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, I: IntoIterator<Item = T>> Apply<T> for I