[][src]Enum bcder::encode::Choice3

pub enum Choice3<L, C, R> {
    One(L),
    Two(C),
    Three(R),
}

A value encoder for a three-variant enum.

Instead of implementing Values for an enum manually, you can just define a method encode that returns a value of this type.

Variants

One(L)

The first choice.

Two(C)

The second choice.

Three(R)

The third choice.

Trait Implementations

impl<L: Values, C: Values, R: Values> Values for Choice3<L, C, R>[src]

Auto Trait Implementations

impl<L, C, R> RefUnwindSafe for Choice3<L, C, R> where
    C: RefUnwindSafe,
    L: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<L, C, R> Send for Choice3<L, C, R> where
    C: Send,
    L: Send,
    R: Send
[src]

impl<L, C, R> Sync for Choice3<L, C, R> where
    C: Sync,
    L: Sync,
    R: Sync
[src]

impl<L, C, R> Unpin for Choice3<L, C, R> where
    C: Unpin,
    L: Unpin,
    R: Unpin
[src]

impl<L, C, R> UnwindSafe for Choice3<L, C, R> where
    C: UnwindSafe,
    L: UnwindSafe,
    R: 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, 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.