Home
last modified time | relevance | path

Searched refs:ProtobufTypeGen (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/protobuf-codegen/src/
Dextensions.rs38 fn return_type_gen(&self) -> ProtobufTypeGen { in return_type_gen() argument
49 ProtobufTypeGen::Message(rust_name_relative) in return_type_gen()
51 FieldDescriptorProto_Type::TYPE_ENUM => ProtobufTypeGen::Enum(rust_name_relative), in return_type_gen()
55 ProtobufTypeGen::Primitive(self.field.get_field_type(), PrimitiveTypeVariant::Default) in return_type_gen()
Drust_types_values.rs551 pub enum ProtobufTypeGen { enum
557 impl ProtobufTypeGen { implementation
560 &ProtobufTypeGen::Primitive(t, PrimitiveTypeVariant::Default) => format!( in rust_type()
565 &ProtobufTypeGen::Primitive( in rust_type()
572 &ProtobufTypeGen::Primitive( in rust_type()
579 &ProtobufTypeGen::Primitive(.., PrimitiveTypeVariant::Carllerche) => unreachable!(), in rust_type()
580 &ProtobufTypeGen::Message(ref name) => format!( in rust_type()
585 &ProtobufTypeGen::Enum(ref name) => format!( in rust_type()
/external/rust/crates/protobuf-codegen/src/field/
Dmod.rs281 fn protobuf_type_gen(&self) -> ProtobufTypeGen { in protobuf_type_gen() argument
283 FieldElem::Primitive(t, v) => ProtobufTypeGen::Primitive(t, v), in protobuf_type_gen()
284 FieldElem::Message(ref name, ..) => ProtobufTypeGen::Message(name.clone()), in protobuf_type_gen()
285 FieldElem::Enum(ref name, ..) => ProtobufTypeGen::Enum(name.clone()), in protobuf_type_gen()