Struct syn_helpers::NamedField [−][src]
pub struct NamedField<'a> {
pub name: &'a Ident,
pub attrs: &'a Vec<Attribute>,
pub ty: &'a Type,
// some fields omitted
}
Fields
name: &'a Ident
attrs: &'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