Struct syn::ItemUnion [−][src]
pub struct ItemUnion { pub attrs: Vec<Attribute>, pub vis: Visibility, pub union_token: Union, pub ident: Ident, pub generics: Generics, pub fields: FieldsNamed, }
A union definition: union Foo<A, B> { x: A, y: B }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
union_token: Union
ident: Ident
generics: Generics
fields: FieldsNamed
Trait Implementations
impl Clone for ItemUnion
[src]
impl Clone for ItemUnion
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ItemUnion> for DeriveInput
[src]
impl From<ItemUnion> for DeriveInput
[src]fn from(input: ItemUnion) -> DeriveInput
[src]
impl ToTokens for ItemUnion
[src]
impl ToTokens for ItemUnion
[src]