Enum syn::VariantData [] [src]

pub enum VariantData {
    Struct(Vec<Field>),
    Tuple(Vec<Field>),
    Unit,
}

Data stored within an enum variant or struct.

Variants

Struct variant, e.g. Point { x: f64, y: f64 }.

Tuple variant, e.g. Some(T).

Unit variant, e.g. None.

Methods

impl VariantData
[src]

Slice containing the fields stored in the variant.

Mutable slice containing the fields stored in the variant.

Trait Implementations

impl ToTokens for VariantData
[src]

Write self to the given Tokens. Read more

impl Debug for VariantData
[src]

Formats the value using the given formatter.

impl Clone for VariantData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for VariantData
[src]

impl PartialEq for VariantData
[src]

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

This method tests for !=.

impl Hash for VariantData
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more