pub struct AbsolutePath { /* private fields */ }Expand description
An absolute path, normalized as the tracer reports touched paths.
Normalizing removes . components, repeated separators, and a trailing
separator. It keeps .. components, because collapsing them is wrong when an
earlier component is a symbolic link. The path is never resolved against the
file system.
Implementations§
Source§impl AbsolutePath
impl AbsolutePath
Sourcepub fn join(&self, path: impl AsRef<Path>) -> Self
pub fn join(&self, path: impl AsRef<Path>) -> Self
Resolve path against this path, as a relative path resolves against a
working directory or a directory descriptor, and normalize the result.
An absolute path replaces this path.
Sourcepub fn into_path_buf(self) -> PathBuf
pub fn into_path_buf(self) -> PathBuf
The path as a PathBuf.
Trait Implementations§
Source§impl AsRef<Path> for AbsolutePath
impl AsRef<Path> for AbsolutePath
Source§impl Clone for AbsolutePath
impl Clone for AbsolutePath
Source§impl Debug for AbsolutePath
impl Debug for AbsolutePath
Source§impl Display for AbsolutePath
impl Display for AbsolutePath
impl Eq for AbsolutePath
Source§impl Hash for AbsolutePath
impl Hash for AbsolutePath
Source§impl Ord for AbsolutePath
impl Ord for AbsolutePath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AbsolutePath
impl PartialEq for AbsolutePath
Source§impl PartialOrd for AbsolutePath
impl PartialOrd for AbsolutePath
impl StructuralPartialEq for AbsolutePath
Auto Trait Implementations§
impl Freeze for AbsolutePath
impl RefUnwindSafe for AbsolutePath
impl Send for AbsolutePath
impl Sync for AbsolutePath
impl Unpin for AbsolutePath
impl UnsafeUnpin for AbsolutePath
impl UnwindSafe for AbsolutePath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more