pub struct ItemEnum {
pub attrs: Vec<Attribute>,
pub enum_token: Enum,
pub name: SolIdent,
pub brace_token: Brace,
pub variants: Punctuated<Variant, Comma>,
}
Expand description
An enum definition: enum Foo { A, B, C }
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.enumDefinition
Fields§
§attrs: Vec<Attribute>
§enum_token: Enum
§name: SolIdent
§brace_token: Brace
§variants: Punctuated<Variant, Comma>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemEnum
impl RefUnwindSafe for ItemEnum
impl !Send for ItemEnum
impl !Sync for ItemEnum
impl Unpin for ItemEnum
impl UnwindSafe for ItemEnum
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