pub struct EnumDecl {
pub name: String,
pub name_span: Span,
pub variants: Vec<VariantDecl>,
pub docs: Option<String>,
pub span: Span,
}Expand description
An enum declaration.
Fields§
§name: StringName as written.
name_span: SpanSource location of the name alone, for diagnostics that point at it.
variants: Vec<VariantDecl>Variants in source order.
docs: Option<String>Joined /// lines.
span: SpanSource location of the whole declaration.
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