[][src]Struct iterpipes::Connector

pub struct Connector<P0, P1> where
    P0: Pipe,
    P1: Pipe<InputItem = P0::OutputItem>, 
{ /* fields omitted */ }

A pipe that connects two other pipes together.

The input item of this connector is the input item of P0 and its output item is the output item of P1. It calculates the output item of P0 and feeds it directly into P1.

Obviously, the output item of P0 has to match the input item of P1.

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

Implementations

impl<P0, P1> Connector<P0, P1> where
    P0: Pipe,
    P1: Pipe<InputItem = P0::OutputItem>, 
[src]

pub fn new(pipe0: P0, pipe1: P1) -> Self[src]

Create a new connector with the two pipes.

Trait Implementations

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

type InputItem = P0::InputItem

The type of input this pipe accepts.

type OutputItem = P1::OutputItem

The type of output this pipe produces.

impl<P0, P1> ResetablePipe for Connector<P0, P1> where
    P0: ResetablePipe,
    P1: ResetablePipe<InputItem = P0::OutputItem>, 
[src]

Auto Trait Implementations

impl<P0, P1> RefUnwindSafe for Connector<P0, P1> where
    P0: RefUnwindSafe,
    P1: RefUnwindSafe

impl<P0, P1> Send for Connector<P0, P1> where
    P0: Send,
    P1: Send

impl<P0, P1> Sync for Connector<P0, P1> where
    P0: Sync,
    P1: Sync

impl<P0, P1> Unpin for Connector<P0, P1> where
    P0: Unpin,
    P1: Unpin

impl<P0, P1> UnwindSafe for Connector<P0, P1> where
    P0: UnwindSafe,
    P1: 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.