Tap1

Trait Tap1 

Source
pub trait Tap1: Sized + Tap1Ref {
    // Provided method
    fn tap1<M, F, A1>(self, f: F) -> impl FnOnce(A1) -> Self
       where F: Tap1Fn<Self, A1, M> { ... }
}
Expand description

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

Provided Methods§

Source

fn tap1<M, F, A1>(self, f: F) -> impl FnOnce(A1) -> Self
where F: Tap1Fn<Self, A1, 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> Tap1 for T