Searched refs:ProtobufEnum (Results 1 – 14 of 14) sorted by relevance
/external/rust/crates/protobuf/src/ |
D | rt.rs | 15 use crate::enums::ProtobufEnum; 145 pub fn vec_packed_enum_data_size<E: ProtobufEnum>(vec: &[E]) -> u32 { in vec_packed_enum_data_size() 172 pub fn vec_packed_enum_size<E: ProtobufEnum>(field_number: u32, vec: &[E]) -> u32 { in vec_packed_enum_size() 212 fn enum_size_no_tag<E: ProtobufEnum>(value: E) -> u32 { in enum_size_no_tag() 217 pub fn enum_size<E: ProtobufEnum>(field_number: u32, value: E) -> u32 { in enum_size() 469 pub fn read_repeated_enum_into<E: ProtobufEnum>( in read_repeated_enum_into() 486 fn read_enum_with_unknown_fields_into<E: ProtobufEnum, C>( in read_enum_with_unknown_fields_into() argument 496 match ProtobufEnum::from_i32(i) { in read_enum_with_unknown_fields_into() 503 fn read_repeated_packed_enum_with_unknown_fields_into<E: ProtobufEnum>( in read_repeated_packed_enum_with_unknown_fields_into() 524 pub fn read_repeated_enum_with_unknown_fields_into<E: ProtobufEnum>( in read_repeated_enum_with_unknown_fields_into() [all …]
|
D | enums.rs | 5 pub trait ProtobufEnum: Eq + Sized + Copy + 'static { interface
|
D | lib.rs | 19 pub use crate::enums::ProtobufEnum;
|
D | types.rs | 13 use crate::enums::ProtobufEnum; 117 pub struct ProtobufTypeEnum<E: ProtobufEnum>(marker::PhantomData<E>); 615 impl<E: ProtobufEnum + ProtobufValue> ProtobufType for ProtobufTypeEnum<E> {
|
D | coded_input_stream.rs | 17 use crate::enums::ProtobufEnum; 355 pub fn read_enum<E: ProtobufEnum>(&mut self) -> ProtobufResult<E> { in read_enum() 357 match ProtobufEnum::from_i32(i) { in read_enum() 556 pub fn read_repeated_packed_enum_into<E: ProtobufEnum>( in read_repeated_packed_enum_into()
|
D | coded_output_stream.rs | 8 use crate::ProtobufEnum; 355 E: ProtobufEnum, in write_enum_obj_no_tag() 457 E: ProtobufEnum, in write_enum_obj()
|
D | descriptor.rs | 2595 os.write_enum(4, crate::ProtobufEnum::value(&v))?; in write_to_with_cached_sizes() 2598 os.write_enum(5, crate::ProtobufEnum::value(&v))?; in write_to_with_cached_sizes() 2782 impl crate::ProtobufEnum for FieldDescriptorProto_Type { 2855 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref() 2867 impl crate::ProtobufEnum for FieldDescriptorProto_Label { 2910 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref() 5496 os.write_enum(9, crate::ProtobufEnum::value(&v))?; in write_to_with_cached_sizes() 5749 impl crate::ProtobufEnum for FileOptions_OptimizeMode { 5792 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref() 6382 os.write_enum(1, crate::ProtobufEnum::value(&v))?; in write_to_with_cached_sizes() [all …]
|
D | plugin.rs | 1230 impl crate::ProtobufEnum for CodeGeneratorResponse_Feature { 1270 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref()
|
/external/rust/crates/protobuf/src/reflect/ |
D | enums.rs | 7 use crate::ProtobufEnum; 50 pub fn for_type<E: ProtobufEnum>() -> &'static EnumDescriptor { in for_type() 90 E: ProtobufEnum, in new_pb_name() argument
|
/external/rust/crates/protobuf/src/well_known_types/ |
D | type_pb.rs | 303 os.write_enum(6, crate::ProtobufEnum::value(&self.syntax))?; in write_to_with_cached_sizes() 754 os.write_enum(1, crate::ProtobufEnum::value(&self.kind))?; in write_to_with_cached_sizes() 757 os.write_enum(2, crate::ProtobufEnum::value(&self.cardinality))?; in write_to_with_cached_sizes() 939 impl crate::ProtobufEnum for Field_Kind { 1013 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref() 1026 impl crate::ProtobufEnum for Field_Cardinality { 1070 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref() 1320 os.write_enum(5, crate::ProtobufEnum::value(&self.syntax))?; in write_to_with_cached_sizes() 1894 impl crate::ProtobufEnum for Syntax { 1934 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref()
|
D | struct_pb.rs | 536 os.write_enum(1, crate::ProtobufEnum::value(&v))?; in write_to_with_cached_sizes() 840 impl crate::ProtobufEnum for NullValue { 878 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref()
|
D | api.rs | 347 os.write_enum(7, crate::ProtobufEnum::value(&self.syntax))?; in write_to_with_cached_sizes() 743 os.write_enum(7, crate::ProtobufEnum::value(&self.syntax))?; in write_to_with_cached_sizes()
|
/external/rust/crates/protobuf/src/reflect/acc/ |
D | v1.rs | 9 use crate::enums::ProtobufEnum; 70 impl<M: Message, E: ProtobufEnum> GetSingularEnum<M> for GetSingularEnumImpl<M, E> { 490 pub fn make_singular_enum_accessor<M: Message + 'static, E: ProtobufEnum + 'static>( in make_singular_enum_accessor()
|
/external/crosvm/crosvm_plugin/src/ |
D | lib.rs | 34 use protobuf::{parse_from_bytes, Message, ProtobufEnum, RepeatedField};
|