pub struct EnumVariantDecl {
pub name: Ident,
pub fields: Vec<ClassField>,
pub span: SourceSpan,
}Expand description
One enum variant: bare (Accept) or data-carrying with a brace body that
reuses the class field grammar (sum types, spec/sum-types.md).
Fields§
§name: Ident§fields: Vec<ClassField>§span: SourceSpanTrait Implementations§
Source§impl Clone for EnumVariantDecl
impl Clone for EnumVariantDecl
Source§fn clone(&self) -> EnumVariantDecl
fn clone(&self) -> EnumVariantDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnumVariantDecl
impl Debug for EnumVariantDecl
impl Eq for EnumVariantDecl
Source§impl PartialEq for EnumVariantDecl
impl PartialEq for EnumVariantDecl
impl StructuralPartialEq for EnumVariantDecl
Auto Trait Implementations§
impl Freeze for EnumVariantDecl
impl RefUnwindSafe for EnumVariantDecl
impl Send for EnumVariantDecl
impl Sync for EnumVariantDecl
impl Unpin for EnumVariantDecl
impl UnsafeUnpin for EnumVariantDecl
impl UnwindSafe for EnumVariantDecl
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