Struct frunk_enum_core::Variant[][src]

pub struct Variant<K, T> {
    pub key: &'static str,
    pub value: T,
    pub name_type_holder: PhantomData<K>,
}

A generic representation of an enum variant. This holds the ident of the variant at both type and value levels.

Fields

key: &'static str

A text representation of the variant ident

value: T

The value of the contents of the variant

name_type_holder: PhantomData<K>

A type-level representation of the variant ident

Auto Trait Implementations

impl<K, T> RefUnwindSafe for Variant<K, T> where
    K: RefUnwindSafe,
    T: RefUnwindSafe

impl<K, T> Send for Variant<K, T> where
    K: Send,
    T: Send

impl<K, T> Sync for Variant<K, T> where
    K: Sync,
    T: Sync

impl<K, T> Unpin for Variant<K, T> where
    K: Unpin,
    T: Unpin

impl<K, T> UnwindSafe for Variant<K, T> where
    K: UnwindSafe,
    T: 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<Choices> CoproductSubsetter<CNil, HNil> for Choices

type Remainder = Choices

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<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.