Home
last modified time | relevance | path

Searched refs:ProtobufType (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/protobuf/src/reflect/field/
Dprotobuf_field_type.rs1 use crate::reflect::protobuf_type_box::ProtobufType;
7 Singular(ProtobufType),
9 Repeated(ProtobufType),
11 Map(ProtobufType, ProtobufType),
Dindex.rs10 use crate::reflect::protobuf_type_box::ProtobufType;
22 ProtobufTypeBox(ProtobufType),
29 ForwardProtobufTypeBox::ProtobufTypeBox(ProtobufType::message(message)) in message()
33 ForwardProtobufTypeBox::ProtobufTypeBox(ProtobufType::enumeration(enumeration)) in enumeration()
37 ForwardProtobufTypeBox::ProtobufTypeBox(ProtobufType::from_proto_type(t)) in from_proto_type()
40 pub(crate) fn resolve(&self, file: &FileDescriptor) -> ProtobufType { in resolve() argument
44 ProtobufType::message(MessageDescriptor::new(file.clone(), *m)) in resolve()
47 ProtobufType::enumeration(EnumDescriptor::new(file.clone(), *m)) in resolve()
Dmod.rs22 use crate::reflect::protobuf_type_box::ProtobufType;
351 pub(crate) fn map_proto_type(&self) -> (ProtobufType, ProtobufType) { in map_proto_type() argument
/external/rust/crates/protobuf/2.27.1/src/
Dtypes.rs24 pub trait ProtobufType { trait
121 impl ProtobufType for ProtobufTypeFloat {
154 impl ProtobufType for ProtobufTypeDouble {
187 impl ProtobufType for ProtobufTypeInt32 {
219 impl ProtobufType for ProtobufTypeInt64 {
247 impl ProtobufType for ProtobufTypeUint32 {
275 impl ProtobufType for ProtobufTypeUint64 {
303 impl ProtobufType for ProtobufTypeSint32 {
331 impl ProtobufType for ProtobufTypeSint64 {
359 impl ProtobufType for ProtobufTypeFixed32 {
[all …]
Dext.rs10 use crate::types::ProtobufType;
13 pub struct ExtFieldOptional<M: Message, T: ProtobufType> {
22 pub struct ExtFieldRepeated<M: Message, T: ProtobufType> {
30 impl<M: Message, T: ProtobufType> ExtFieldOptional<M, T> {
41 impl<M: Message, T: ProtobufType> ExtFieldRepeated<M, T> {
Drt.rs839 K: ProtobufType, in compute_map_size() argument
840 V: ProtobufType, in compute_map_size() argument
864 K: ProtobufType, in write_map_with_cached_sizes()
865 V: ProtobufType, in write_map_with_cached_sizes() argument
892 K: ProtobufType, in read_map_into()
893 V: ProtobufType, in read_map_into() argument
/external/rust/crates/protobuf/src/reflect/
Dprotobuf_type_box.rs15 pub(crate) struct ProtobufType { struct
22 impl ProtobufType { argument
35 pub(crate) fn message(message: MessageDescriptor) -> ProtobufType { in message() argument
36 ProtobufType::new(RuntimeType::Message(message), Type::TYPE_MESSAGE).unwrap() in message()
39 pub(crate) fn enumeration(enumeration: EnumDescriptor) -> ProtobufType { in enumeration() argument
40 ProtobufType::new(RuntimeType::Enum(enumeration), Type::TYPE_ENUM).unwrap() in enumeration()
43 pub(crate) fn from_proto_type(t: Type) -> ProtobufType { in from_proto_type() argument
44 ProtobufType::new(RuntimeType::from_proto_type(t), t).unwrap() in from_proto_type()
47 pub(crate) fn new(runtime: RuntimeType, t: Type) -> crate::Result<ProtobufType> { in new() argument
69 Ok(ProtobufType { runtime, t }) in new()
/external/rust/crates/protobuf/2.27.1/src/reflect/acc/
Dv1.rs585 V: ProtobufType + 'static, in make_vec_accessor()
617 V: ProtobufType + 'static, in make_repeated_field_accessor()
649 V: ProtobufType + 'static, in make_option_accessor()
681 V: ProtobufType + 'static, in make_singular_field_accessor()
713 V: ProtobufType + 'static, in make_singular_ptr_field_accessor()
747 V: ProtobufType + 'static, in make_simple_field_accessor()
781 K: ProtobufType + 'static, in make_map_accessor()
782 V: ProtobufType + 'static, in make_map_accessor()
783 <K as ProtobufType>::Value: Hash + Eq, in make_map_accessor()
/external/rust/crates/protobuf/src/reflect/dynamic/
Dmod.rs11 use crate::reflect::protobuf_type_box::ProtobufType;
360 let pt = ProtobufType::new(rtb, field_desc.proto().type_())?; in merge_from_dyn()
365 let pt = ProtobufType::new(rtb, field_desc.proto().type_())?; in merge_from_dyn()