Home
last modified time | relevance | path

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

/external/rust/crates/protobuf-codegen/src/
Dprotobuf_name.rs44 pub struct ProtobufRelativePath { struct
50 impl ProtobufRelativePath { implementation
52 pub fn empty() -> ProtobufRelativePath { in empty()
53 ProtobufRelativePath::new(String::new()) in empty()
57 pub fn new(path: String) -> ProtobufRelativePath { in new() argument
60 ProtobufRelativePath { path } in new()
64 pub fn from_components<I: IntoIterator<Item = ProtobufIdent>>(i: I) -> ProtobufRelativePath { in from_components()
66 ProtobufRelativePath::from(v.join(".")) in from_components()
101 fn parent(&self) -> Option<ProtobufRelativePath> { in parent() argument
103 Some(pos) => Some(ProtobufRelativePath::new(self.path[..pos].to_owned())), in parent()
[all …]
Dscope.rs12 use crate::protobuf_name::ProtobufRelativePath;
69 ProtobufRelativePath::from(self.file_descriptor.get_package()).into_absolute() in get_package()
85 name: &ProtobufRelativePath, in find_message_or_enum() argument
240 pub fn protobuf_path_to_file(&self) -> ProtobufRelativePath { in protobuf_path_to_file() argument
241 ProtobufRelativePath::from_components( in protobuf_path_to_file()
276 fn protobuf_name_to_package(&self) -> ProtobufRelativePath { in protobuf_name_to_package() argument
Dlib.rs129 pub use protobuf_name::ProtobufRelativePath;