[][src]Struct syn::DataUnion

pub struct DataUnion {
    pub union_token: Union,
    pub fields: FieldsNamed,

An untagged union input to a proc_macro_derive macro.

This type is available if Syn is built with the "derive" feature.


union_token: Unionfields: FieldsNamed

Trait Implementations

impl From<DataUnion> for Data[src]

impl Clone for DataUnion[src]

impl Eq for DataUnion[src]

impl PartialEq<DataUnion> for DataUnion[src]

impl Debug for DataUnion[src]

impl Hash for DataUnion[src]

impl StructuralPartialEq for DataUnion[src]

impl StructuralEq for DataUnion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized