Home
last modified time | relevance | path

Searched refs:CanonicalPath (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/which-rs/src/
H A Dlib.rs505 /// `Path::canonicalize`, but `CanonicalPath` has the advantage of being a type distinct from
508 /// It can be beneficial to use `CanonicalPath` instead of `std::path::Path` when you want the type
512 /// Since `CanonicalPath` implements `Deref` for `std::path::Path`, all methods on
513 /// `&std::path::Path` are also available to `&CanonicalPath` values.
515 pub struct CanonicalPath { structure names
519 impl CanonicalPath { impls
522 /// This calls `which` and `Path::canonicalize` and maps the result into a `CanonicalPath`.
523 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<CanonicalPath> { in new()
526 .map(|inner| CanonicalPath { inner }) in new()
531 /// This calls `which_all` and `Path::canonicalize` and maps the results into `CanonicalPath`
[all...]
/third_party/rust/crates/which-rs/tests/
H A Dbasic.rs91 fn _which<T: AsRef<OsStr>>(f: &TestFixture, path: T) -> which::Result<which::CanonicalPath> { in _which()
92 which::CanonicalPath::new_in(path, Some(f.paths.clone()), f.tempdir.path()) in _which()
98 ) -> which::Result<impl Iterator<Item = which::Result<which::CanonicalPath>> + '_> { in _which_all()
99 which::CanonicalPath::all_in(path, Some(f.paths.clone()), f.tempdir.path()) in _which_all()

Completed in 2 milliseconds