/// Returns an iterator over the names of the fields.
///
/// If a field has no name it is replaced by its field number.
Returns an iterator over the names of the fields.
If a field has no name it is replaced by its field number.
Returns an iterator over the names of the fields . If a field has no name it is replaced by its field number .
pub fn fields(
        item_struct: &syn::ItemStruct,
    ) -> impl Iterator<Item = (usize, &syn::Field)> {
        item_struct
            .fields
            .iter()
            .enumerate()
            .map(|(n, field)| (n, field))
    }
pub fn fields ( item_struct : & syn :: ItemStruct , ) -> impl Iterator < Item = ( usize , & syn :: Field ) > { item_struct . fields . iter ( ) . enumerate ( ) . map ( | ( n , field ) | ( n , field ) ) }
Returns an iterator over the names of the fields.
Returns an iterator over the names of the fields .
item_struct
&syn::ItemStruct