pub struct EnumDecl {
pub name: Ident,
pub variants: Vec<EnumVariant>,
pub span: Span,
}Expand description
Fields§
§name: IdentThe enum name (e.g., “Role”).
variants: Vec<EnumVariant>Enum variants.
span: SpanSpan covering the entire enum block.
Trait Implementations§
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