Searched refs:ProtobufRelativePath (Results 1 – 3 of 3) sorted by relevance
44 pub struct ProtobufRelativePath { struct50 impl ProtobufRelativePath { implementation52 pub fn empty() -> ProtobufRelativePath { in empty()53 ProtobufRelativePath::new(String::new()) in empty()57 pub fn new(path: String) -> ProtobufRelativePath { in new() argument60 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() argument103 Some(pos) => Some(ProtobufRelativePath::new(self.path[..pos].to_owned())), in parent()[all …]
12 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() argument240 pub fn protobuf_path_to_file(&self) -> ProtobufRelativePath { in protobuf_path_to_file() argument241 ProtobufRelativePath::from_components( in protobuf_path_to_file()276 fn protobuf_name_to_package(&self) -> ProtobufRelativePath { in protobuf_name_to_package() argument
129 pub use protobuf_name::ProtobufRelativePath;