Struct frunk_enum_core::Variant
source · pub struct Variant<K, T> {
pub key: &'static str,
pub value: T,
pub name_type_holder: PhantomData<K>,
}
Expand description
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more