Searched refs:RustIdent (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/protobuf-codegen/src/ |
D | rust_name.rs | 6 pub(crate) struct RustIdent(String); struct 9 impl RustIdent { implementation 10 pub fn new(s: &str) -> RustIdent { in new() argument 15 RustIdent(s.to_owned()) in new() 18 pub fn super_ident() -> RustIdent { in super_ident() 19 RustIdent::new("super") in super_ident() 35 impl fmt::Display for RustIdent { implementation 41 impl From<&'_ str> for RustIdent { implementation 43 RustIdent::new(s) in from() 47 impl From<String> for RustIdent { implementation [all …]
|
D | file.rs | 2 use crate::rust_name::RustIdent; 15 pub(crate) fn proto_path_to_rust_mod(path: &str) -> RustIdent { in proto_path_to_rust_mod() argument 41 RustIdent::from(name) in proto_path_to_rust_mod() 48 use crate::rust_name::RustIdent; 53 RustIdent::from("proto"), in test_mod_path_proto_ext() 61 RustIdent::from("proto_proto3"), in test_mod_path_unknown_ext() 68 assert_eq!(RustIdent::from("proto"), proto_path_to_rust_mod("proto")); in test_mod_path_empty_ext() 74 RustIdent::from("baz"), in test_mod_path_dir() 83 RustIdent::from("baz"), in test_mod_path_dir_backslashes()
|
D | scope.rs | 7 use crate::rust_name::RustIdent; 288 fn rust_name(&self) -> RustIdent { in rust_name() argument 295 RustIdent::from(r) in rust_name() 420 pub fn rust_name(&self) -> RustIdent { in rust_name() argument 426 RustIdent::new(&r) in rust_name() 503 pub fn rust_name(&self) -> RustIdent { in rust_name() argument 530 pub fn field_name(&'a self) -> RustIdent { in field_name() argument
|
D | oneof.rs | 9 use rust_name::RustIdent; 24 pub oneof_rust_field_name: RustIdent,
|
D | rust_types_values.rs | 8 use rust_name::RustIdent; 40 Enum(String, RustIdent),
|
/external/rust/crates/protobuf-codegen/src/field/ |
D | mod.rs | 19 use rust_name::RustIdent; 241 Enum(String, String, RustIdent), 371 RustIdent::from(enum_with_scope.values()[0].rust_name().to_owned()), in field_elem() 435 pub rust_name: RustIdent, 2026 pub(crate) fn rust_field_name_for_protobuf_field_name(name: &str) -> RustIdent { in rust_field_name_for_protobuf_field_name() argument 2028 RustIdent::new(&format!("field_{}", name)) in rust_field_name_for_protobuf_field_name() 2030 RustIdent::new(name) in rust_field_name_for_protobuf_field_name()
|