pub struct UnnamedField {
    pub idx: usize,
    pub attrs: Vec<Attribute>,
    pub ty: Type,
    /* private fields */
}

Fields§

§idx: usize§attrs: Vec<Attribute>§ty: Type

Trait Implementations§

Get a pattern for reading this field
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. Use [Field::get_reference_with_config] to for different options

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.