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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes