[−][src]Struct iterpipes::Composed
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.
Methods
impl<P> Composed<P> where
P: Pipe,
[src]
P: Pipe,
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]
P: Pipe,
type InputItem = P::InputItem
The type of input this pipe accepts.
type OutputItem = P::OutputItem
The type of output this pipe produces.
fn next(&mut self, item: P::InputItem) -> P::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,
impl<P0, P1> Shr<P1> for Composed<P0> where
P0: Pipe,
P1: Pipe<InputItem = P0::OutputItem>,
[src]
P0: Pipe,
P1: Pipe<InputItem = P0::OutputItem>,
Auto Trait Implementations
impl<P> RefUnwindSafe for Composed<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for Composed<P> where
P: Send,
P: Send,
impl<P> Sync for Composed<P> where
P: Sync,
P: Sync,
impl<P> Unpin for Composed<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Composed<P> where
P: UnwindSafe,
P: 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>,