Pipe1

Trait Pipe1 

Source
pub trait Pipe1: Sized + Pipe1Ref {
    // Provided method
    fn pipe1<R, A1>(self, f: impl FnOnce(Self, A1) -> R) -> impl FnOnce(A1) -> R { ... }
}
Expand description

Adds by-value partial application for arity 1 (requires Self: Sized).

Provided Methods§

Source

fn pipe1<R, A1>(self, f: impl FnOnce(Self, A1) -> R) -> impl FnOnce(A1) -> R

Partially applies f by moving self into the returned closure. The closure takes (A1..A1).

Semantics: self.pipe1(f)(a1..a1) == f(self, a1..a1).

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