Struct syn::Variant [] [src]

pub struct Variant {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub data: VariantData,
}

Fields

Trait Implementations

impl ToTokens for Variant
[src]

impl Debug for Variant
[src]

Formats the value using the given formatter.

impl Clone for Variant
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Variant
[src]

impl PartialEq for Variant
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.