Lines Matching refs:ProtobufValue
3 use super::value::ProtobufValue;
8 fn to_option(&self) -> Option<&dyn ProtobufValue>; in to_option() argument
10 fn set_value(&mut self, value: &dyn ProtobufValue); in set_value() argument
13 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for Option<V> {
14 fn to_option(&self) -> Option<&dyn ProtobufValue> { in to_option() argument
15 self.as_ref().map(|v| v as &dyn ProtobufValue) in to_option()
18 fn set_value(&mut self, value: &dyn ProtobufValue) { in set_value() argument
26 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for SingularField<V> {
27 fn to_option(&self) -> Option<&dyn ProtobufValue> { in to_option() argument
28 self.as_ref().map(|v| v as &dyn ProtobufValue) in to_option()
31 fn set_value(&mut self, value: &dyn ProtobufValue) { in set_value() argument
39 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for SingularPtrField<V> {
40 fn to_option(&self) -> Option<&dyn ProtobufValue> { in to_option() argument
41 self.as_ref().map(|v| v as &dyn ProtobufValue) in to_option()
44 fn set_value(&mut self, value: &dyn ProtobufValue) { in set_value() argument