pub struct StdCanonicalPath(/* private fields */);Expand description
Canonical host-filesystem path produced by
StdFilesystem::canonicalize.
Wraps a PathBuf returned by std::fs::canonicalize; the
inner field is private and the type is constructible only inside
this module, so a StdCanonicalPath can only be obtained as the
successful result of a real-filesystem canonicalisation call.
This is the host-canonical analogue of, but disjoint from,
MemCanonicalPath (in haz-vfs-testing): the
type system prevents mixing canonical paths produced by
different Filesystem implementations.
Implementations§
Trait Implementations§
Source§impl AsRef<Path> for StdCanonicalPath
impl AsRef<Path> for StdCanonicalPath
Source§impl Clone for StdCanonicalPath
impl Clone for StdCanonicalPath
Source§fn clone(&self) -> StdCanonicalPath
fn clone(&self) -> StdCanonicalPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StdCanonicalPath
impl Debug for StdCanonicalPath
Source§impl Display for StdCanonicalPath
impl Display for StdCanonicalPath
impl Eq for StdCanonicalPath
Source§impl Hash for StdCanonicalPath
impl Hash for StdCanonicalPath
Source§impl PartialEq for StdCanonicalPath
impl PartialEq for StdCanonicalPath
Source§fn eq(&self, other: &StdCanonicalPath) -> bool
fn eq(&self, other: &StdCanonicalPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StdCanonicalPath
Auto Trait Implementations§
impl Freeze for StdCanonicalPath
impl RefUnwindSafe for StdCanonicalPath
impl Send for StdCanonicalPath
impl Sync for StdCanonicalPath
impl Unpin for StdCanonicalPath
impl UnsafeUnpin for StdCanonicalPath
impl UnwindSafe for StdCanonicalPath
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