Lines Matching refs:FieldAccessorFunctions
139 pub(crate) enum FieldAccessorFunctions<M> { enum
155 impl<M> fmt::Debug for FieldAccessorFunctions<M> { implementation
158 &FieldAccessorFunctions::SingularHasGetSet { .. } => { in fmt()
161 &FieldAccessorFunctions::Simple(..) => write!(f, "Simple(..)"), in fmt()
162 &FieldAccessorFunctions::Optional(..) => write!(f, "Optional(..)"), in fmt()
163 &FieldAccessorFunctions::Repeated(..) => write!(f, "Repeated(..)"), in fmt()
164 &FieldAccessorFunctions::Map(..) => write!(f, "Map(..)"), in fmt()
170 pub(crate) fns: FieldAccessorFunctions<M>,
176 FieldAccessorFunctions::Repeated(..) | FieldAccessorFunctions::Map(..) => { in get_value_option()
179 FieldAccessorFunctions::Simple(ref a) => Some(a.get_field(m).as_ref()), in get_value_option()
180 FieldAccessorFunctions::Optional(ref a) => { in get_value_option()
183 FieldAccessorFunctions::SingularHasGetSet { in get_value_option()
200 FieldAccessorFunctions::SingularHasGetSet { has, .. } => has(message_down_cast(m)), in has_field_generic()
201 FieldAccessorFunctions::Optional(ref a) => { in has_field_generic()
204 FieldAccessorFunctions::Simple(ref a) => { in has_field_generic()
207 FieldAccessorFunctions::Map(..) | FieldAccessorFunctions::Repeated(..) => { in has_field_generic()
215 FieldAccessorFunctions::Repeated(ref a) => a.get_field(message_down_cast(m)).len(), in len_field_generic()
216 FieldAccessorFunctions::Map(ref a) => a.get_field(message_down_cast(m)).len(), in len_field_generic()
217 FieldAccessorFunctions::Simple(..) in len_field_generic()
218 | FieldAccessorFunctions::SingularHasGetSet { .. } in len_field_generic()
219 | FieldAccessorFunctions::Optional(..) => { in len_field_generic()
227 FieldAccessorFunctions::SingularHasGetSet { in get_message_generic()
231 FieldAccessorFunctions::Optional(ref t) => { in get_message_generic()
248 FieldAccessorFunctions::SingularHasGetSet { in get_enum_generic()
330 FieldAccessorFunctions::Repeated(ref accessor2) => { in get_reflect()
333 FieldAccessorFunctions::Map(ref accessor2) => { in get_reflect()
336 FieldAccessorFunctions::Optional(ref accessor2) => ReflectFieldRef::Optional( in get_reflect()
342 FieldAccessorFunctions::Simple(ref accessor2) => ReflectFieldRef::Optional({ in get_reflect()
350 FieldAccessorFunctions::SingularHasGetSet { in get_reflect()
378 FieldAccessorFunctions::SingularHasGetSet { in make_singular_u32_accessor()
395 FieldAccessorFunctions::SingularHasGetSet { in make_singular_i32_accessor()
412 FieldAccessorFunctions::SingularHasGetSet { in make_singular_u64_accessor()
429 FieldAccessorFunctions::SingularHasGetSet { in make_singular_i64_accessor()
446 FieldAccessorFunctions::SingularHasGetSet { in make_singular_f32_accessor()
463 FieldAccessorFunctions::SingularHasGetSet { in make_singular_f64_accessor()
480 FieldAccessorFunctions::SingularHasGetSet { in make_singular_bool_accessor()
497 FieldAccessorFunctions::SingularHasGetSet { in make_singular_enum_accessor()
511 FieldAccessorFunctions::SingularHasGetSet { in make_singular_string_accessor()
525 FieldAccessorFunctions::SingularHasGetSet { in make_singular_bytes_accessor()
539 FieldAccessorFunctions::SingularHasGetSet { in make_singular_message_accessor()
573 FieldAccessorFunctions::Repeated(Box::new(MessageGetMut::<M, Vec<V::Value>> { in make_vec_accessor()
605 FieldAccessorFunctions::Repeated(Box::new(MessageGetMut::<M, RepeatedField<V::Value>> { in make_repeated_field_accessor()
637 FieldAccessorFunctions::Optional(Box::new(MessageGetMut::<M, Option<V::Value>> { in make_option_accessor()
669 FieldAccessorFunctions::Optional(Box::new(MessageGetMut::<M, SingularField<V::Value>> { in make_singular_field_accessor()
701 FieldAccessorFunctions::Optional(Box::new( in make_singular_ptr_field_accessor()
735 FieldAccessorFunctions::Simple(Box::new(MessageGetMut::<M, V::Value> { in make_simple_field_accessor()
771 FieldAccessorFunctions::Map(Box::new(MessageGetMut::<M, HashMap<K::Value, V::Value>> { in make_map_accessor()