Enum safina_select::OptionAbc[][src]

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

Variants

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

Implementations

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

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

impl<A, B, C> OptionAbc<A, B, C>[src]

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

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

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

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

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

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

Panics

Panics if self is not an OptionABC::A.

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

Panics

Panics if self is not an OptionABC::B.

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

Panics

Panics if self is not an OptionABC::C.

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<A, B, C> RefUnwindSafe for OptionAbc<A, B, C> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe

impl<A, B, C> Send for OptionAbc<A, B, C> where
    A: Send,
    B: Send,
    C: Send

impl<A, B, C> Sync for OptionAbc<A, B, C> where
    A: Sync,
    B: Sync,
    C: Sync

impl<A, B, C> Unpin for OptionAbc<A, B, C> where
    A: Unpin,
    B: Unpin,
    C: Unpin

impl<A, B, C> UnwindSafe for OptionAbc<A, B, C> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: 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.