Tap3

Trait Tap3 

Source
pub trait Tap3: Sized + Tap3Ref {
    // Provided method
    fn tap3<M, F, A1, A2, A3>(self, f: F) -> impl FnOnce(A1, A2, A3) -> Self
       where F: Tap3Fn<Self, A1, A2, A3, M> { ... }
}
Expand description

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

Provided Methods§

Source

fn tap3<M, F, A1, A2, A3>(self, f: F) -> impl FnOnce(A1, A2, A3) -> Self
where F: Tap3Fn<Self, A1, A2, A3, 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> Tap3 for T