Lines Matching refs:RustModulePath
277 struct RustModulePath(String); struct
279 impl RustModulePath { implementation
281 fn join(&self, path: &str) -> RustModulePath { in join() argument
283 return RustModulePath(path.to_string()); in join()
289 RustModulePath(format!("{}::{}", self.0, path)) in join()
293 impl Display for RustModulePath { implementation
299 impl From<&str> for RustModulePath { implementation
301 RustModulePath(path.to_string()) in from()
311 ) -> Result<BTreeMap<ProtoPath, RustModulePath>, String> { in get_extern_paths() argument
313 let rust_path = RustModulePath(crate_name.to_string()); in get_extern_paths()
324 extern_paths: &mut BTreeMap<ProtoPath, RustModulePath>, in descriptor_set_file_to_extern_paths() argument
325 rust_path: &RustModulePath, in descriptor_set_file_to_extern_paths() argument
343 extern_paths: &mut BTreeMap<ProtoPath, RustModulePath>, in message_type_to_extern_paths() argument
345 rust_path: &RustModulePath, in message_type_to_extern_paths() argument
377 extern_paths: &mut BTreeMap<ProtoPath, RustModulePath>, in enum_type_to_extern_paths() argument
379 rust_path: &RustModulePath, in enum_type_to_extern_paths() argument
393 extern_paths: &mut BTreeMap<ProtoPath, RustModulePath>, in oneof_type_to_extern_paths() argument
395 rust_path: &RustModulePath, in oneof_type_to_extern_paths() argument
903 &RustModulePath::from("bar"), in oneof_type_to_extern_paths_test()
910 Some(&RustModulePath::from("bar::Foo")) in oneof_type_to_extern_paths_test()
919 &RustModulePath::from("bar::baz"), in oneof_type_to_extern_paths_test()
926 Some(&RustModulePath::from("bar::baz::Foo")) in oneof_type_to_extern_paths_test()
943 &RustModulePath::from("bar"), in enum_type_to_extern_paths_test()
950 Some(&RustModulePath::from("bar::Foo")) in enum_type_to_extern_paths_test()
959 &RustModulePath::from("bar::baz"), in enum_type_to_extern_paths_test()
966 Some(&RustModulePath::from("bar::baz::Foo")) in enum_type_to_extern_paths_test()
1005 &RustModulePath::from("bar"), in message_type_to_extern_paths_test()
1011 Some(&RustModulePath::from("bar::Foo")) in message_type_to_extern_paths_test()
1015 Some(&RustModulePath::from("bar::foo::Bar")) in message_type_to_extern_paths_test()
1019 Some(&RustModulePath::from("bar::foo::Nested")) in message_type_to_extern_paths_test()
1023 Some(&RustModulePath::from("bar::foo::nested::Baz")) in message_type_to_extern_paths_test()
1032 &RustModulePath::from("bar::bob"), in message_type_to_extern_paths_test()
1038 Some(&RustModulePath::from("bar::bob::Foo")) in message_type_to_extern_paths_test()
1042 Some(&RustModulePath::from("bar::bob::foo::Bar")) in message_type_to_extern_paths_test()
1046 Some(&RustModulePath::from("bar::bob::foo::Nested")) in message_type_to_extern_paths_test()
1050 Some(&RustModulePath::from("bar::bob::foo::nested::Baz")) in message_type_to_extern_paths_test()
1087 let rust_module_path = RustModulePath::from(""); in rust_module_path_test()
1089 assert_eq!(rust_module_path.join("foo"), RustModulePath::from("foo")); in rust_module_path_test()
1092 let rust_module_path = RustModulePath::from("foo"); in rust_module_path_test()
1094 assert_eq!(rust_module_path.join(""), RustModulePath::from("foo")); in rust_module_path_test()
1097 let rust_module_path = RustModulePath::from("foo"); in rust_module_path_test()
1101 RustModulePath::from("foo::bar") in rust_module_path_test()
1105 let rust_module_path = RustModulePath::from("foo::bar"); in rust_module_path_test()
1109 RustModulePath::from("foo::bar::baz") in rust_module_path_test()