[][src]Enum emerald_rs::rpc::common::Either

pub enum Either<T, U> {
    Left(T),
    Right(U),
}

Variants

Left(T)
Right(U)

Implementations

impl<T, U: Default> Either<T, U>[src]

pub fn into_right(self) -> U[src]

impl<T, U: Default> Either<(T,), (T, U)>[src]

pub fn into_full(self) -> (T, U)[src]

Trait Implementations

impl<T: Debug, U: Debug> Debug for Either<T, U>[src]

impl<'de, T, U> Deserialize<'de> for Either<T, U> where
    T: Deserialize<'de>,
    U: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T, U> RefUnwindSafe for Either<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for Either<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Either<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for Either<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for Either<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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