Enum syn_helpers::NamedOrUnnamedField[][src]

pub enum NamedOrUnnamedField<'a, 'b> {
    Named(&'a mut NamedField<'b>),
    Unnamed(&'a mut UnnamedField<'b>),
}

Variants

Named(&'a mut NamedField<'b>)

Tuple Fields

0: &'a mut NamedField<'b>

Unnamed(&'a mut UnnamedField<'b>)

Tuple Fields

0: &'a mut UnnamedField<'b>

Trait Implementations

Get a expression which refers to this field. Note that reference takes the form _ + index of field, this is to prevent possible clashes with parameter names Read more

Same as Field::get_reference but a alternate reference for pair building

Get a pattern for reading this field

For pair building

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.