Struct futures_await_syn::Variant [] [src]

pub struct Variant {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub data: VariantData,
    pub discriminant: Option<Expr>,
    pub eq_token: Option<Eq>,
}

An enum variant.

Fields

Name of the variant.

Attributes tagged on the variant.

Type of variant.

Explicit discriminant, e.g. Foo = 1

Trait Implementations

impl ToTokens for Variant
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more

impl Clone for Variant
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Synom for Variant
[src]

[src]