Lines Matching refs:Fields
18 pub fields: Fields,
37 pub enum Fields {
75 impl Fields { impl
81 Fields::Unit => crate::punctuated::empty_punctuated_iter(), in iter()
82 Fields::Named(f) => f.named.iter(), in iter()
83 Fields::Unnamed(f) => f.unnamed.iter(), in iter()
92 Fields::Unit => crate::punctuated::empty_punctuated_iter_mut(), in iter_mut()
93 Fields::Named(f) => f.named.iter_mut(), in iter_mut()
94 Fields::Unnamed(f) => f.unnamed.iter_mut(), in iter_mut()
101 Fields::Unit => 0, in len()
102 Fields::Named(f) => f.named.len(), in len()
103 Fields::Unnamed(f) => f.unnamed.len(), in len()
110 Fields::Unit => true, in is_empty()
111 Fields::Named(f) => f.named.is_empty(), in is_empty()
112 Fields::Unnamed(f) => f.unnamed.is_empty(), in is_empty()
117 impl IntoIterator for Fields { implementation
123 Fields::Unit => Punctuated::<Field, ()>::new().into_iter(), in into_iter()
124 Fields::Named(f) => f.named.into_iter(), in into_iter()
125 Fields::Unnamed(f) => f.unnamed.into_iter(), in into_iter()
130 impl<'a> IntoIterator for &'a Fields { implementation
139 impl<'a> IntoIterator for &'a mut Fields { implementation
256 Fields::Named(input.parse()?) in parse()
258 Fields::Unnamed(input.parse()?) in parse()
260 Fields::Unit in parse()