Searched refs:ReflectOptional (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/protobuf/src/reflect/ |
D | optional.rs | 7 pub trait ReflectOptional: 'static { trait 13 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for Option<V> { 26 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for SingularField<V> { 39 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for SingularPtrField<V> {
|
/external/rust/crates/protobuf/src/reflect/acc/ |
D | v1.rs | 19 use crate::reflect::optional::ReflectOptional; 148 Optional(Box<dyn FieldAccessor2<M, dyn ReflectOptional>>), 612 impl<M, V> FieldAccessor2<M, dyn ReflectOptional> for MessageGetMut<M, Option<V>> 617 fn get_field<'a>(&self, m: &'a M) -> &'a dyn ReflectOptional { in get_field() argument 618 (self.get_field)(m) as &dyn ReflectOptional in get_field() 621 fn mut_field<'a>(&self, m: &'a mut M) -> &'a mut dyn ReflectOptional { in mut_field() argument 622 (self.mut_field)(m) as &mut dyn ReflectOptional in mut_field() 644 impl<M, V> FieldAccessor2<M, dyn ReflectOptional> for MessageGetMut<M, SingularField<V>> 649 fn get_field<'a>(&self, m: &'a M) -> &'a dyn ReflectOptional { in get_field() argument 650 (self.get_field)(m) as &dyn ReflectOptional in get_field() [all …]
|