[][src]Enum frunk_enum_core::HEither

pub enum HEither<H, T> {
    Head(H),
    Tail(T),
}

A building block for a generic enum. The "additive-type" mirror for frunk::HCons. This is normally used as:

This example is not tested
HEither<A,
        HEither<B,
                HEither<C,
                        Void>>>

Variants

Head(H)

The first variant.

Tail(T)

The second/other variant.

Trait Implementations

impl<TargetHead, TargetTail, SourceHead, SourceTail, HeadIndices, TailIndices, Key> Transmogrifier<HEither<Variant<Key, TargetHead>, TargetTail>, HCons<HeadIndices, TailIndices>> for HEither<Variant<Key, SourceHead>, SourceTail> where
    SourceHead: Transmogrifier<TargetHead, HeadIndices>,
    SourceTail: Transmogrifier<TargetTail, TailIndices>, 
[src]

Auto Trait Implementations

impl<H, T> Send for HEither<H, T> where
    H: Send,
    T: Send

impl<H, T> Sync for HEither<H, T> where
    H: Sync,
    T: Sync

Blanket Implementations

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.

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

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

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

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 

impl<Source> Sculptor<HNil, HNil> for Source

type Remainder = Source

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

type Remainder = Choices