field_ident_token

Function field_ident_token 

Source
pub fn field_ident_token(field: &Field, index: Index) -> TokenStream
Expand description

Returns token that refers to the field.

It is the field name for named field and field index for unnamed fields.