Enum syn_helpers::Fields[][src]

pub enum Fields<'a> {
    Named {
        on_structure: Structure<'a>,
        fields: Vec<NamedField<'a>>,
    },
    Unnamed {
        on_structure: Structure<'a>,
        fields: Vec<UnnamedField<'a>>,
    },
    Unit {
        on_structure: Structure<'a>,
    },
}
Expand description

Represents the fields in a structure. This could be the fields on a struct or the fields in the variant of a enum

Variants

Named

Fields

on_structure: Structure<'a>
fields: Vec<NamedField<'a>>

...{ X: String }

Unnamed

Fields

on_structure: Structure<'a>
fields: Vec<UnnamedField<'a>>

...(String)

Unit

Fields

on_structure: Structure<'a>

No fields ...

Implementations

Get a (exact size) iterator

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.