Struct syn_helpers::UnnamedField[][src]

pub struct UnnamedField<'a> {
    pub idx: usize,
    pub attrs: &'a Vec<Attribute>,
    pub ty: &'a Type,
    // some fields omitted
}

Fields

idx: usizeattrs: &'a Vec<Attribute>ty: &'a Type

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.