[][src]Struct fn_chain::Chainable

pub struct Chainable<R> { /* fields omitted */ }

Chainable struct that permit user to rapidly call chain method to chain multiple function together using previous function returned value as input to the next function in chain.

It is usually construct by using function chain.

Implementations

impl<R> Chainable<R>[src]

pub fn chain<CR, F>(self, func: F) -> Chainable<CR> where
    F: FnOnce(R) -> CR, 
[src]

Consume current chain and produce a new Chainable that can further chain as needed.

pub fn end(self) -> R[src]

Consume the chain and release it result

Trait Implementations

impl<R> Deref for Chainable<R>[src]

type Target = R

The resulting type after dereferencing.

Auto Trait Implementations

impl<R> RefUnwindSafe for Chainable<R> where
    R: RefUnwindSafe

impl<R> Send for Chainable<R> where
    R: Send

impl<R> Sync for Chainable<R> where
    R: Sync

impl<R> Unpin for Chainable<R> where
    R: Unpin

impl<R> UnwindSafe for Chainable<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.