pub fn field_infos<'a, 'b: 'a>(
        &'a self,
        config: &'b Config,
    ) -> impl Iterator<Item = FieldInfo<'a>> {
        Self::fields(&self.item_struct).map(move |(n, field)| {
            let field_config = config
                .field_configs
                .get(&n)
                .map(|config| &config.value)
                .cloned()
                .unwrap_or_default();
            FieldInfo::new(n, field, field_config)
        })
    }
/// 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 field_infos<'a, 'b: 'a>(
        &'a self,
        config: &'b Config,
    ) -> impl Iterator<Item = FieldInfo<'a>> {
        Self::fields(&self.item_struct).map(move |(n, field)| {
            let field_config = config
                .field_configs
                .get(&n)
                .map(|config| &config.value)
                .cloned()
                .unwrap_or_default();
            FieldInfo::new(n, field, field_config)
        })
    }
pub fn field_infos < ' a , ' b : ' a > ( & ' a self , config : & ' b Config , ) -> impl Iterator < Item = FieldInfo < ' a > > { Self :: fields ( & self . item_struct ) . map ( move | ( n , field ) | { let field_config = config . field_configs . get ( & n ) . map ( | config | & config . value ) . cloned ( ) . unwrap_or_default ( ) ; FieldInfo :: new ( n , field , field_config ) } ) }
Returns an iterator over the names of the fields.
Returns an iterator over the names of the fields .
&'a self
config
&'b Config
&'a self
config
&'b Config