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