pub struct VariantDecl {
pub span: Span,
pub name: Ident,
pub base: Expr,
pub items: Vec<BlockItem>,
}Expand description
variant Name : Type { ... }
Fields§
§span: Span§name: Ident§base: Expr§items: Vec<BlockItem>Trait Implementations§
Source§impl Clone for VariantDecl
impl Clone for VariantDecl
Source§fn clone(&self) -> VariantDecl
fn clone(&self) -> VariantDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariantDecl
impl Debug for VariantDecl
Auto Trait Implementations§
impl Freeze for VariantDecl
impl RefUnwindSafe for VariantDecl
impl Send for VariantDecl
impl Sync for VariantDecl
impl Unpin for VariantDecl
impl UnsafeUnpin for VariantDecl
impl UnwindSafe for VariantDecl
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