pub struct EnumDecl<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub cases: Vec<EnumCase<'a>>,
}
Expand description
Represents an enum declaration in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The doc comments for the enum.
id: Ident<'a>
The identifier of the enum.
cases: Vec<EnumCase<'a>>
The cases of the enum.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EnumDecl<'a>
impl<'a> RefUnwindSafe for EnumDecl<'a>
impl<'a> Send for EnumDecl<'a>
impl<'a> Sync for EnumDecl<'a>
impl<'a> Unpin for EnumDecl<'a>
impl<'a> UnwindSafe for EnumDecl<'a>
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