Struct PipeBox

Source
pub struct PipeBox<'a, Value: 'a> { /* private fields */ }
Expand description

Return value of pipe

Trait Implementations§

Source§

impl<'a, Value: 'a> PipeFunc<'a> for PipeBox<'a, Value>

Source§

type Value = Value

Source§

fn from_func(func: impl 'a + FnOnce() -> Self::Value) -> Self

Start a pipeline by a function
Source§

impl<'a, Value: 'a> PipeMap<'a> for PipeBox<'a, Value>

Source§

type Value = Value

Source§

fn map<Next: 'a>( self, func: impl 'a + FnOnce(Value) -> Next, ) -> PipeBox<'a, Next>

Move to another node in the pipeline
Source§

fn to<Next: 'a>( self, func: impl 'a + FnOnce(Self::Value) -> Next, ) -> PipeBox<'a, Next>

Alias to map
Source§

impl<'a, Value: 'a> PipeUnwrap for PipeBox<'a, Value>

Source§

type Value = Value

Source§

fn unwrap(self) -> Value

Execute the pipeline and get the value
Source§

fn get(self) -> Self::Value

Alias to unwrap
Source§

impl<'a, Value: 'a> PipeVal<'a> for PipeBox<'a, Value>

Source§

type Value = Value

Source§

fn from_val(val: Value) -> Self

Start a pipeline by a value

Auto Trait Implementations§

§

impl<'a, Value> Freeze for PipeBox<'a, Value>

§

impl<'a, Value> !RefUnwindSafe for PipeBox<'a, Value>

§

impl<'a, Value> !Send for PipeBox<'a, Value>

§

impl<'a, Value> !Sync for PipeBox<'a, Value>

§

impl<'a, Value> Unpin for PipeBox<'a, Value>

§

impl<'a, Value> !UnwindSafe for PipeBox<'a, Value>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<'a, PipeBox> Pipe<'a> for PipeBox
where PipeBox: PipeFunc<'a> + PipeVal<'a> + PipeMap<'a> + PipeUnwrap,