Struct macrohelper::bodykind::enumerator::Variant [] [src]

pub struct Variant {
    pub name: String,
    pub data: Structure,
}

Representation of an Enum

Enum's are really just a union (shared memory) while what is stored in that type is really just a question of what variation of that data the enum currently is.

Therefore this just stores a name, and a reference to the structure

Fields

Methods

impl Variant
[src]

Build from syn's Variant type

Eaiser to get name

Trait Implementations

impl Clone for Variant
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Variant
[src]

Formats the value using the given formatter.