pub struct ItemUnion {
pub attrs: Vec<Attribute>,
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 only if Syn is built with the "full" feature.
Fields
attrs: Vec<Attribute>vis: Visibilityunion_token: Unionident: Identgenerics: Genericsfields: FieldsNamedTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemUnion
impl !Send for ItemUnion
impl !Sync for ItemUnion
impl Unpin for ItemUnion
impl UnwindSafe for ItemUnion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more