Struct frunk_enum_core::Variant [−][src]
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,
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for Variant<K, T> where
K: Send,
T: Send,
K: Send,
T: Send,
impl<K, T> Sync for Variant<K, T> where
K: Sync,
T: Sync,
K: Sync,
T: Sync,
impl<K, T> Unpin for Variant<K, T> where
K: Unpin,
T: Unpin,
K: Unpin,
T: Unpin,
impl<K, T> UnwindSafe for Variant<K, T> where
K: UnwindSafe,
T: UnwindSafe,
K: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
type Remainder = Choices
pub fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
U: LiftFrom<T, I>,
pub fn lift_into(self) -> U
impl<Source> Sculptor<HNil, HNil> for Source
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,