Skip to main content

Unzip

Struct Unzip 

Source
pub struct Unzip<Push0, Push1> { /* private fields */ }
Expand description

Push combinator that splits (A, B) items into two separate downstream pushes.

Trait Implementations§

Source§

impl<Push0: Clone, Push1: Clone> Clone for Unzip<Push0, Push1>

Source§

fn clone(&self) -> Unzip<Push0, Push1>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Push0: Debug, Push1: Debug> Debug for Unzip<Push0, Push1>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P0, P1, Item0, Item1, Meta> Push<(Item0, Item1), Meta> for Unzip<P0, P1>
where P0: Push<Item0, Meta>, P1: Push<Item1, Meta>, Meta: Copy,

Source§

type Ctx<'ctx> = <<P0 as Push<Item0, Meta>>::Ctx<'ctx> as Context<'ctx>>::Merged<<P1 as Push<Item1, Meta>>::Ctx<'ctx>>

The context type required to push into this pipeline.
Source§

type CanPend = <<P0 as Push<Item0, Meta>>::CanPend as Toggle>::Or<<P1 as Push<Item1, Meta>>::CanPend>

Whether this push can return PushStep::Pending.
Source§

fn poll_ready( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>

Check if this push is ready to accept an item.
Source§

fn start_send(self: Pin<&mut Self>, (item0, item1): (Item0, Item1), meta: Meta)

Send an item into this push pipeline. Read more
Source§

fn poll_flush( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>

Flushes any buffered items in this push pipeline.
Source§

fn size_hint(self: Pin<&mut Self>, hint: (usize, Option<usize>))

Informs this push how many items are about to be sent. Read more
Source§

impl<'__pin, Push0, Push1> Unpin for Unzip<Push0, Push1>
where PinnedFieldsOf<__Origin<'__pin, Push0, Push1>>: Unpin,

Auto Trait Implementations§

§

impl<Push0, Push1> Freeze for Unzip<Push0, Push1>
where Push0: Freeze, Push1: Freeze,

§

impl<Push0, Push1> RefUnwindSafe for Unzip<Push0, Push1>
where Push0: RefUnwindSafe, Push1: RefUnwindSafe,

§

impl<Push0, Push1> Send for Unzip<Push0, Push1>
where Push0: Send, Push1: Send,

§

impl<Push0, Push1> Sync for Unzip<Push0, Push1>
where Push0: Sync, Push1: Sync,

§

impl<Push0, Push1> UnsafeUnpin for Unzip<Push0, Push1>
where Push0: UnsafeUnpin, Push1: UnsafeUnpin,

§

impl<Push0, Push1> UnwindSafe for Unzip<Push0, Push1>
where Push0: UnwindSafe, Push1: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.