Lines Matching full:path
4 use std::path::{Component, Path, PathBuf};
14 // Given a path provided by the user, determines where generated files related
15 // to that path should go in our out dir. In particular we don't want to
17 // passed a path containing lots of `..` or an absolute path.
18 pub(crate) fn local_relative_path(path: &Path) -> PathBuf {
20 for component in path.components() {
34 impl PathExt for Path {
47 original: impl AsRef<Path>,
48 link: impl AsRef<Path>,
62 original: impl AsRef<Path>,
63 copy: impl AsRef<Path>,