Struct devise::syn::ItemUnion [−][src]
pub struct ItemUnion {
pub attrs: Vec<Attribute, Global>,
pub vis: Visibility,
pub union_token: Union,
pub ident: Ident,
pub generics: Generics,
pub fields: FieldsNamed,
}Expand description
A union definition: union Foo<A, B> { x: A, y: B }.
This type is available if Syn is built with the "full" feature.
Fields
attrs: Vec<Attribute, Global>vis: Visibilityunion_token: Unionident: Identgenerics: Genericsfields: FieldsNamedTrait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ItemUnion
impl UnwindSafe for ItemUnion
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