[][src]Struct iterpipes::Composed

pub struct Composed<P> where
    P: Pipe
{ /* fields omitted */ }

A composable or composed pipe.

This struct is an implementation of the newtype pattern to implement the >> operator for pipes (manifested as the Shr trait).

For more information, please see the documentation of the compose method.

Implementations

impl<P> Composed<P> where
    P: Pipe
[src]

pub fn new(pipe: P) -> Self[src]

Create new composable or composed pipe.

pub fn unwrap(self) -> P[src]

Unwrap the inner pipe.

Trait Implementations

impl<P> Pipe for Composed<P> where
    P: Pipe
[src]

type InputItem = P::InputItem

The type of input this pipe accepts.

type OutputItem = P::OutputItem

The type of output this pipe produces.

impl<P: ResetablePipe> ResetablePipe for Composed<P> where
    P: ResetablePipe
[src]

impl<P0, P1> Shr<P1> for Composed<P0> where
    P0: Pipe,
    P1: Pipe<InputItem = P0::OutputItem>, 
[src]

type Output = Composed<Connector<P0, P1>>

The resulting type after applying the >> operator.

Auto Trait Implementations

impl<P> RefUnwindSafe for Composed<P> where
    P: RefUnwindSafe

impl<P> Send for Composed<P> where
    P: Send

impl<P> Sync for Composed<P> where
    P: Sync

impl<P> Unpin for Composed<P> where
    P: Unpin

impl<P> UnwindSafe for Composed<P> where
    P: 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.