Lines Matching refs:path
15 use std::path::{Path, PathBuf};
18 fn is_valid(&self, path: &Path) -> bool;
67 let path = PathBuf::from(&binary_name);
70 Some(cwd) if path.has_separator() => {
71 // Search binary in cwd if the path have a path separator.
72 Either::Left(Self::cwd_search_candidates(path, cwd).into_iter())
79 Either::Right(Self::path_search_candidates(path, paths).into_iter())
109 .map(|e| e.path())
126 let path = binary_name.to_absolute(cwd);
128 Self::append_extension(iter::once(path))
185 // Check if path already have executable extension
191 // e.g. path `c:/windows/bin[.ext]` will expand to: