Struct syn::Variant [] [src]

pub struct Variant {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub style: Style,
    pub fields: Vec<Field>,


Trait Implementations

impl ToTokens for Variant

impl Debug for Variant

Formats the value using the given formatter.

impl Clone for Variant

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Variant

impl PartialEq for Variant

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

This method tests for !=.