Enum safina_select::OptionAbcd[][src]

pub enum OptionAbcd<A, B, C, D> {
    A(A),
    B(B),
    C(C),
    D(D),
}

Variants

A(A)
B(B)
C(C)
D(D)

Implementations

impl<T> OptionAbcd<T, T, T, T>[src]

pub fn take(self) -> T[src]

impl<A, B, C, D> OptionAbcd<A, B, C, D>[src]

pub fn as_ref(&self) -> OptionAbcd<&A, &B, &C, &D>[src]

pub fn a(&self) -> Option<&A>[src]

pub fn b(&self) -> Option<&B>[src]

pub fn c(&self) -> Option<&C>[src]

pub fn d(&self) -> Option<&D>[src]

impl<A: Debug, B: Debug, C: Debug, D: Debug> OptionAbcd<A, B, C, D>[src]

pub fn unwrap_a(self) -> A[src]

Panics

Panics if self is not an OptionABCD::A.

pub fn unwrap_b(self) -> B[src]

Panics

Panics if self is not an OptionABCD::B.

pub fn unwrap_c(self) -> C[src]

Panics

Panics if self is not an OptionABCD::C.

pub fn unwrap_d(self) -> D[src]

Panics

Panics if self is not an OptionABCD::D.

Trait Implementations

impl<A: Clone, B: Clone, C: Clone, D: Clone> Clone for OptionAbcd<A, B, C, D>[src]

impl<A: Debug, B: Debug, C: Debug, D: Debug> Debug for OptionAbcd<A, B, C, D>[src]

impl<A: Display, B: Display, C: Display, D: Display> Display for OptionAbcd<A, B, C, D>[src]

impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq> Eq for OptionAbcd<A, B, C, D>[src]

impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq> PartialEq<OptionAbcd<A, B, C, D>> for OptionAbcd<A, B, C, D>[src]

Auto Trait Implementations

impl<A, B, C, D> RefUnwindSafe for OptionAbcd<A, B, C, D> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe,
    D: RefUnwindSafe

impl<A, B, C, D> Send for OptionAbcd<A, B, C, D> where
    A: Send,
    B: Send,
    C: Send,
    D: Send

impl<A, B, C, D> Sync for OptionAbcd<A, B, C, D> where
    A: Sync,
    B: Sync,
    C: Sync,
    D: Sync

impl<A, B, C, D> Unpin for OptionAbcd<A, B, C, D> where
    A: Unpin,
    B: Unpin,
    C: Unpin,
    D: Unpin

impl<A, B, C, D> UnwindSafe for OptionAbcd<A, B, C, D> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: UnwindSafe,
    D: 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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.