pub struct RelPath(/* private fields */);Expand description
A relative path within a WorkspaceRoot.
Construction rejects . and .. components, so a resolved root / rel
can never escape the root directory. The guard is checked at construction
time and again in the memory double, so a filesystem adapter can trust the
type.
Implementations§
Trait Implementations§
impl Eq for RelPath
impl StructuralPartialEq for RelPath
Auto Trait Implementations§
impl Freeze for RelPath
impl RefUnwindSafe for RelPath
impl Send for RelPath
impl Sync for RelPath
impl Unpin for RelPath
impl UnsafeUnpin for RelPath
impl UnwindSafe for RelPath
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