Home
last modified time | relevance | path

Searched refs:ProtobufEnum (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/protobuf/src/
Drt.rs15 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 …]
Denums.rs5 pub trait ProtobufEnum: Eq + Sized + Copy + 'static { trait
Dlib.rs19 pub use crate::enums::ProtobufEnum;
Dtypes.rs13 use crate::enums::ProtobufEnum;
117 pub struct ProtobufTypeEnum<E: ProtobufEnum>(marker::PhantomData<E>);
615 impl<E: ProtobufEnum + ProtobufValue> ProtobufType for ProtobufTypeEnum<E> {
Dcoded_input_stream.rs17 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()
Dcoded_output_stream.rs8 use crate::ProtobufEnum;
355 E: ProtobufEnum, in write_enum_obj_no_tag()
457 E: ProtobufEnum, in write_enum_obj()
Ddescriptor.rs2595 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 …]
Dplugin.rs1230 impl crate::ProtobufEnum for CodeGeneratorResponse_Feature {
1270 crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self)) in as_ref()
/external/rust/crates/protobuf/src/reflect/
Denums.rs7 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/
Dtype_pb.rs303 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()
Dstruct_pb.rs536 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()
Dapi.rs347 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/
Dv1.rs9 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/
Dlib.rs34 use protobuf::{parse_from_bytes, Message, ProtobufEnum, RepeatedField};