pub struct Variant<'a> {
pub ident: Ident,
pub attrs: Variant,
pub style: Style,
pub fields: Vec<Field<'a>>,
pub original: &'a Variant,
}
Expand description
A variant of an enum.
Fields§
§ident: Ident
§attrs: Variant
§style: Style
§fields: Vec<Field<'a>>
§original: &'a Variant
Auto Trait Implementations§
impl<'a> Freeze for Variant<'a>
impl<'a> RefUnwindSafe for Variant<'a>
impl<'a> !Send for Variant<'a>
impl<'a> !Sync for Variant<'a>
impl<'a> Unpin for Variant<'a>
impl<'a> UnwindSafe for Variant<'a>
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