pub struct Variant {
pub ident: &'static str,
pub fields: Fields,
}
Expand description
A specific enum
variant.
Fields§
§ident: &'static str
The identifier of the enum variant.
fields: Fields
The fields that are associated with a particular enum
variant.
Trait Implementations§
Source§impl Ord for Variant
impl Ord for Variant
Source§impl PartialOrd for Variant
impl PartialOrd for Variant
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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