Tap0

Trait Tap0 

Source
pub trait Tap0: Sized + Tap0Ref {
    // Provided method
    fn tap0<M, F>(self, f: F) -> impl FnOnce() -> Self
       where F: Tap0Fn<Self, M> { ... }
}

Provided Methods§

Source

fn tap0<M, F>(self, f: F) -> impl FnOnce() -> Self
where F: Tap0Fn<Self, M>,

By-value tap. Accepts BOTH Fn(&mut T) and Fn(&T).

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> Tap0 for T