[][src]Enum safina::OptionABC

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, B, C> OptionABC<A, B, C> where
    C: Debug,
    B: Debug,
    A: Debug
[src]

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

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

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<A, B, C> RefUnwindSafe for OptionABC<A, B, C> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe
[src]

impl<A, B, C> Send for OptionABC<A, B, C> where
    A: Send,
    B: Send,
    C: Send
[src]

impl<A, B, C> Sync for OptionABC<A, B, C> where
    A: Sync,
    B: Sync,
    C: Sync
[src]

impl<A, B, C> Unpin for OptionABC<A, B, C> where
    A: Unpin,
    B: Unpin,
    C: Unpin
[src]

impl<A, B, C> UnwindSafe for OptionABC<A, B, C> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: UnwindSafe
[src]

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.