Struct serde_derive_internals::ast::Variant
source · [−]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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more