Home
last modified time | relevance | path

Searched refs:RustIdent (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/protobuf-codegen/src/
Drust_name.rs6 pub(crate) struct RustIdent(String); struct
9 impl RustIdent { impl
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 …]
Dfile.rs2 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()
Dscope.rs7 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
Doneof.rs9 use rust_name::RustIdent;
24 pub oneof_rust_field_name: RustIdent,
Drust_types_values.rs8 use rust_name::RustIdent;
40 Enum(String, RustIdent),
/external/rust/crates/protobuf-codegen/src/field/
Dmod.rs19 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()