Trait rtools::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) )

Implementors§

source§

impl<T, I: IntoIterator<Item = T>> Apply<T> for I