pub struct Composed<P>where
P: Pipe,{ /* private fields */ }
Expand description
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§
Trait Implementations§
Source§impl<P> Pipe for Composed<P>where
P: Pipe,
impl<P> Pipe for Composed<P>where
P: Pipe,
Source§type OutputItem = <P as Pipe>::OutputItem
type OutputItem = <P as Pipe>::OutputItem
The type of output this pipe produces.
Source§fn next(&mut self, item: P::InputItem) -> P::OutputItem
fn next(&mut self, item: P::InputItem) -> P::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<P> ResetablePipe for Composed<P>where
P: ResetablePipe,
impl<P> ResetablePipe for Composed<P>where
P: ResetablePipe,
Auto Trait Implementations§
impl<P> Freeze for Composed<P>where
P: Freeze,
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§
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