pub struct Connector<P0, P1>{ /* private fields */ }
Expand description
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§
Trait Implementations§
Source§impl<P0, P1> Pipe for Connector<P0, P1>
impl<P0, P1> Pipe for Connector<P0, P1>
Source§type OutputItem = <P1 as Pipe>::OutputItem
type OutputItem = <P1 as Pipe>::OutputItem
The type of output this pipe produces.
Source§fn next(&mut self, input: Self::InputItem) -> Self::OutputItem
fn next(&mut self, input: Self::InputItem) -> Self::OutputItem
Calculate the next output item, based on an input item.
Source§fn connect<O: Pipe<InputItem = Self::OutputItem>>(
self,
other: O,
) -> Connector<Self, O>where
Self: Sized,
fn connect<O: Pipe<InputItem = Self::OutputItem>>(
self,
other: O,
) -> Connector<Self, O>where
Self: Sized,
Connect two pipes. Read more
Source§impl<P0, P1> ResetablePipe for Connector<P0, P1>
impl<P0, P1> ResetablePipe for Connector<P0, P1>
Auto Trait Implementations§
impl<P0, P1> Freeze for Connector<P0, P1>
impl<P0, P1> RefUnwindSafe for Connector<P0, P1>where
P0: RefUnwindSafe,
P1: RefUnwindSafe,
impl<P0, P1> Send for Connector<P0, P1>
impl<P0, P1> Sync for Connector<P0, P1>
impl<P0, P1> Unpin for Connector<P0, P1>
impl<P0, P1> UnwindSafe for Connector<P0, P1>where
P0: UnwindSafe,
P1: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more