pub struct EnumDecl {
pub doc_comment: Vec<Comment>,
pub modifiers: Vec<Modifier>,
pub enum_span: Span,
pub name: Ident,
pub implements_clause: Option<ImplementsClause>,
pub body: EnumBody,
}Expand description
An enum declaration.
Fields§
§doc_comment: Vec<Comment>§modifiers: Vec<Modifier>§enum_span: Span§name: Ident§implements_clause: Option<ImplementsClause>§body: EnumBodyImplementations§
Trait Implementations§
impl Eq for EnumDecl
impl StructuralPartialEq for EnumDecl
Auto Trait Implementations§
impl Freeze for EnumDecl
impl RefUnwindSafe for EnumDecl
impl Send for EnumDecl
impl Sync for EnumDecl
impl Unpin for EnumDecl
impl UnsafeUnpin for EnumDecl
impl UnwindSafe for EnumDecl
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