Home
last modified time | relevance | path

Searched refs:ProtobufValue (Results 1 – 19 of 19) sorted by relevance

/external/rust/crates/protobuf/src/reflect/
Dmap.rs5 use super::value::ProtobufValue;
14 impl<K: ProtobufValue + Eq + Hash + 'static, V: ProtobufValue + 'static> ReflectMap
29 fn next(&mut self) -> Option<(&'a dyn ProtobufValue, &'a dyn ProtobufValue)>; in next() argument
36 impl<'a, K: ProtobufValue + Eq + Hash + 'static, V: ProtobufValue + 'static> ReflectMapIterTrait<'a>
39 fn next(&mut self) -> Option<(&'a dyn ProtobufValue, &'a dyn ProtobufValue)> { in next() argument
41 Some((k, v)) => Some((k as &dyn ProtobufValue, v as &dyn ProtobufValue)), in next()
52 type Item = (&'a dyn ProtobufValue, &'a dyn ProtobufValue);
54 fn next(&mut self) -> Option<(&'a dyn ProtobufValue, &'a dyn ProtobufValue)> { in next() argument
61 type Item = (&'a dyn ProtobufValue, &'a dyn ProtobufValue);
Doptional.rs3 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()
[all …]
Dvalue.rs12 pub trait ProtobufValue: Any + 'static { trait
50 impl ProtobufValue for u32 {
56 impl ProtobufValue for u64 {
62 impl ProtobufValue for i32 {
68 impl ProtobufValue for i64 {
74 impl ProtobufValue for f32 {
80 impl ProtobufValue for f64 {
86 impl ProtobufValue for bool {
92 impl ProtobufValue for String {
98 impl ProtobufValue for str {
[all …]
Drepeated.rs3 use super::value::ProtobufValue;
11 fn get(&self, index: usize) -> &dyn ProtobufValue; in get() argument
14 impl<V: ProtobufValue + 'static> ReflectRepeated for Vec<V> {
25 fn get(&self, index: usize) -> &dyn ProtobufValue { in get() argument
31 impl<V: ProtobufValue + 'static> ReflectRepeated for [V] {
42 fn get(&self, index: usize) -> &dyn ProtobufValue { in get() argument
47 impl<V: ProtobufValue + 'static> ReflectRepeated for RepeatedField<V> {
58 fn get(&self, index: usize) -> &dyn ProtobufValue { in get() argument
64 fn next(&mut self) -> Option<&'a dyn ProtobufValue>; in next() argument
67 struct ReflectRepeatedIterImplSlice<'a, V: ProtobufValue + 'static> {
[all …]
Dmod.rs16 pub use self::value::ProtobufValue;
/external/rust/crates/protobuf/src/reflect/acc/
Dv1.rs13 use crate::reflect::ProtobufValue;
92 struct GetSetCopyFnsImpl<M, V: ProtobufValue + Copy> {
97 impl<M, V: ProtobufValue + Copy> GetSetCopyFns<M> for GetSetCopyFnsImpl<M, V> {
99 (&(self.get)(m) as &dyn ProtobufValue).as_ref_copy() in get_field()
146 Simple(Box<dyn FieldAccessor2<M, dyn ProtobufValue>>),
551 V: ProtobufValue + 'static,
583 V: ProtobufValue + 'static,
615 V: ProtobufValue + Clone + 'static,
647 V: ProtobufValue + Clone + 'static,
679 V: ProtobufValue + Clone + 'static,
[all …]
/external/rust/crates/protobuf/src/well_known_types/
Dwrappers.rs171 impl crate::reflect::ProtobufValue for DoubleValue {
326 impl crate::reflect::ProtobufValue for FloatValue {
481 impl crate::reflect::ProtobufValue for Int64Value {
636 impl crate::reflect::ProtobufValue for UInt64Value {
791 impl crate::reflect::ProtobufValue for Int32Value {
946 impl crate::reflect::ProtobufValue for UInt32Value {
1101 impl crate::reflect::ProtobufValue for BoolValue {
1263 impl crate::reflect::ProtobufValue for StringValue {
1425 impl crate::reflect::ProtobufValue for BytesValue {
Dtype_pb.rs405 impl crate::reflect::ProtobufValue for Type {
909 impl crate::reflect::ProtobufValue for Field {
1011 impl crate::reflect::ProtobufValue for Field_Kind {
1068 impl crate::reflect::ProtobufValue for Field_Cardinality {
1416 impl crate::reflect::ProtobufValue for Enum {
1662 impl crate::reflect::ProtobufValue for EnumValue {
1881 impl crate::reflect::ProtobufValue for Option {
1932 impl crate::reflect::ProtobufValue for Syntax {
Dstruct_pb.rs173 impl crate::reflect::ProtobufValue for Struct {
659 impl crate::reflect::ProtobufValue for Value {
828 impl crate::reflect::ProtobufValue for ListValue {
876 impl crate::reflect::ProtobufValue for NullValue {
Dempty.rs135 impl crate::reflect::ProtobufValue for Empty {
Dsource_context.rs178 impl crate::reflect::ProtobufValue for SourceContext {
Dfield_mask.rs177 impl crate::reflect::ProtobufValue for FieldMask {
Dduration.rs206 impl crate::reflect::ProtobufValue for Duration {
Dtimestamp.rs206 impl crate::reflect::ProtobufValue for Timestamp {
Dany.rs220 impl crate::reflect::ProtobufValue for Any {
Dapi.rs455 impl crate::reflect::ProtobufValue for Api {
851 impl crate::reflect::ProtobufValue for Method {
1055 impl crate::reflect::ProtobufValue for Mixin {
/external/rust/crates/protobuf/src/
Dtypes.rs16 use crate::reflect::ProtobufValue;
26 type Value: ProtobufValue + Clone + 'static;
615 impl<E: ProtobufEnum + ProtobufValue> ProtobufType for ProtobufTypeEnum<E> {
645 impl<M: Message + Clone + ProtobufValue> ProtobufType for ProtobufTypeMessage<M> {
Dplugin.rs305 impl crate::reflect::ProtobufValue for Version {
624 impl crate::reflect::ProtobufValue for CodeGeneratorRequest {
884 impl crate::reflect::ProtobufValue for CodeGeneratorResponse {
1217 impl crate::reflect::ProtobufValue for CodeGeneratorResponse_File {
1268 impl crate::reflect::ProtobufValue for CodeGeneratorResponse_Feature {
Ddescriptor.rs185 impl crate::reflect::ProtobufValue for FileDescriptorSet {
894 impl crate::reflect::ProtobufValue for FileDescriptorProto {
1507 impl crate::reflect::ProtobufValue for DescriptorProto {
1762 impl crate::reflect::ProtobufValue for DescriptorProto_ExtensionRange {
1960 impl crate::reflect::ProtobufValue for DescriptorProto_ReservedRange {
2129 impl crate::reflect::ProtobufValue for ExtensionRangeOptions {
2753 impl crate::reflect::ProtobufValue for FieldDescriptorProto {
2853 impl crate::reflect::ProtobufValue for FieldDescriptorProto_Type {
2908 impl crate::reflect::ProtobufValue for FieldDescriptorProto_Label {
3137 impl crate::reflect::ProtobufValue for OneofDescriptorProto {
[all …]