[−][src]Struct iterpipes::Connector
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.
Methods
impl<P0, P1> Connector<P0, P1> where
P0: Pipe,
P1: Pipe<InputItem = P0::OutputItem>,
[src]
P0: Pipe,
P1: Pipe<InputItem = P0::OutputItem>,
Trait Implementations
impl<P0, P1> Pipe for Connector<P0, P1> where
P0: Pipe,
P1: Pipe<InputItem = P0::OutputItem>,
[src]
P0: Pipe,
P1: Pipe<InputItem = P0::OutputItem>,
type InputItem = P0::InputItem
The type of input this pipe accepts.
type OutputItem = P1::OutputItem
The type of output this pipe produces.
fn next(&mut self, input: Self::InputItem) -> Self::OutputItem
[src]
fn bypass(self) -> Bypass<Self> where
Self: Sized,
Self::InputItem: Clone,
[src]
Self: Sized,
Self::InputItem: Clone,
fn compose(self) -> Composed<Self> where
Self: Sized,
[src]
Self: Sized,
fn connect<O: Pipe<InputItem = Self::OutputItem>>(
self,
other: O
) -> Connector<Self, O> where
Self: Sized,
[src]
self,
other: O
) -> Connector<Self, O> where
Self: Sized,
fn into_iter(self) -> IterPipe<Self> where
Self::InputItem: Default,
Self: Sized + Pipe<InputItem = ()>,
[src]
Self::InputItem: Default,
Self: Sized + Pipe<InputItem = ()>,
fn optional(self) -> Optional<Self> where
Self: Sized,
[src]
Self: Sized,
fn enumerate(self) -> Enumerate<Self> where
Self: Sized,
[src]
Self: Sized,
fn boxed(
self
) -> Box<dyn Pipe<InputItem = Self::InputItem, OutputItem = Self::OutputItem>> where
Self: Sized + 'static,
[src]
self
) -> Box<dyn Pipe<InputItem = Self::InputItem, OutputItem = Self::OutputItem>> where
Self: Sized + 'static,
Auto Trait Implementations
impl<P0, P1> RefUnwindSafe for Connector<P0, P1> where
P0: RefUnwindSafe,
P1: RefUnwindSafe,
P0: RefUnwindSafe,
P1: RefUnwindSafe,
impl<P0, P1> Send for Connector<P0, P1> where
P0: Send,
P1: Send,
P0: Send,
P1: Send,
impl<P0, P1> Sync for Connector<P0, P1> where
P0: Sync,
P1: Sync,
P0: Sync,
P1: Sync,
impl<P0, P1> Unpin for Connector<P0, P1> where
P0: Unpin,
P1: Unpin,
P0: Unpin,
P1: Unpin,
impl<P0, P1> UnwindSafe for Connector<P0, P1> where
P0: UnwindSafe,
P1: UnwindSafe,
P0: UnwindSafe,
P1: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,