Tap2

Trait Tap2 

Source
pub trait Tap2: Sized + Tap2Ref {
    // Provided method
    fn tap2<M, F, A1, A2>(self, f: F) -> impl FnOnce(A1, A2) -> Self
       where F: Tap2Fn<Self, A1, A2, M> { ... }
}
Expand description

Adds by-value tap helpers for arity 2 (requires Self: Sized).

Provided Methods§

Source

fn tap2<M, F, A1, A2>(self, f: F) -> impl FnOnce(A1, A2) -> Self
where F: Tap2Fn<Self, A1, A2, M>,

Moves self in, calls f (which can accept &self OR &mut self), and returns self.

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: Sized> Tap2 for T