pub struct EnumDecl {
pub name: String,
pub variants: Vec<EnumVariant>,
pub span: Span,
}Expand description
Enum declaration: enum Name { Variant1, Variant2(type) }
Fields§
§name: String§variants: Vec<EnumVariant>§span: SpanTrait 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 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