Struct devise::syn::ItemEnum [−][src]
pub struct ItemEnum {
pub attrs: Vec<Attribute, Global>,
pub vis: Visibility,
pub enum_token: Enum,
pub ident: Ident,
pub generics: Generics,
pub brace_token: Brace,
pub variants: Punctuated<Variant, Comma>,
}
Expand description
An enum definition: enum Foo<A, B> { C<A>, D<B> }
.
This type is available if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute, Global>
vis: Visibility
enum_token: Enum
ident: Ident
generics: Generics
brace_token: Brace
variants: Punctuated<Variant, Comma>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ItemEnum
impl UnwindSafe for ItemEnum
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more