mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal changes for mdbook
This commit is contained in:
parent
5bd0f50111
commit
0f49c97e93
3 changed files with 41 additions and 9 deletions
|
@ -25,6 +25,12 @@ impl VfsPath {
|
|||
VfsPath(VfsPathRepr::VirtualPath(VirtualPath(path)))
|
||||
}
|
||||
|
||||
/// Create a path from string. Input should be a string representation of
|
||||
/// an absolute path inside filesystem
|
||||
pub fn new_real_path(path: String) -> VfsPath {
|
||||
VfsPath::from(AbsPathBuf::assert(path.into()))
|
||||
}
|
||||
|
||||
/// Returns the `AbsPath` representation of `self` if `self` is on the file system.
|
||||
pub fn as_path(&self) -> Option<&AbsPath> {
|
||||
match &self.0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue