pub struct Variant {
pub attrs: Vec<Attribute>,
pub ident: Ident,
pub fields: Fields,
pub discriminant: Option<(Eq, Expr)>,
}Expand description
An enum variant.
Fields§
§attrs: Vec<Attribute>§ident: IdentName of the variant.
fields: FieldsContent stored in the variant.
discriminant: Option<(Eq, Expr)>Explicit discriminant: Variant = 1
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