pub struct EnumDeclaration {
    pub attributes: Vec<Attribute>,
    pub visibility: Visibility,
    pub name: Type,
    pub variants: Vec<Variant>,
}Expand description
An enum type declaration
Fields§
§attributes: Vec<Attribute>A list of Attributes
visibility: VisibilityThe visibility of the enum
name: TypeThe name of the enum
variants: Vec<Variant>Variants of the enum
Implementations§
Trait Implementations§
Source§impl Clone for EnumDeclaration
 
impl Clone for EnumDeclaration
Source§fn clone(&self) -> EnumDeclaration
 
fn clone(&self) -> EnumDeclaration
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 Default for EnumDeclaration
 
impl Default for EnumDeclaration
Source§fn default() -> EnumDeclaration
 
fn default() -> EnumDeclaration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnumDeclaration
impl RefUnwindSafe for EnumDeclaration
impl Send for EnumDeclaration
impl Sync for EnumDeclaration
impl Unpin for EnumDeclaration
impl UnwindSafe for EnumDeclaration
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