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]
[]

Important traits for &'a [u8]
[]

Slice containing the fields stored in the variant.

Important traits for &'a [u8]
[]

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. Read more

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

Auto Trait Implementations

impl Send for VariantData

impl Sync for VariantData