Enum MergedItem

Source
pub enum MergedItem<I1, I2> {
    First(I1),
    Second(I2),
    Both(I1, I2),
}
👎Deprecated: functionality provided by select now
Expand description

An item returned from a merge stream, which represents an item from one or both of the underlying streams.

Variants§

§

First(I1)

👎Deprecated: functionality provided by select now

An item from the first stream

§

Second(I2)

👎Deprecated: functionality provided by select now

An item from the second stream

§

Both(I1, I2)

👎Deprecated: functionality provided by select now

Items from both streams

Trait Implementations§

Source§

impl<I1, I2> Debug for MergedItem<I1, I2>
where I1: Debug, I2: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<I1, I2> Freeze for MergedItem<I1, I2>
where I1: Freeze, I2: Freeze,

§

impl<I1, I2> RefUnwindSafe for MergedItem<I1, I2>

§

impl<I1, I2> Send for MergedItem<I1, I2>
where I1: Send, I2: Send,

§

impl<I1, I2> Sync for MergedItem<I1, I2>
where I1: Sync, I2: Sync,

§

impl<I1, I2> Unpin for MergedItem<I1, I2>
where I1: Unpin, I2: Unpin,

§

impl<I1, I2> UnwindSafe for MergedItem<I1, I2>
where I1: UnwindSafe, I2: 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> 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, 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.