pub struct VirtualPath { /* private fields */ }Expand description
An absolute, normalized virtual path.
Paths always start at the filesystem root. Repeated separators, .
components, and .. components are resolved during parsing (.. clamps
at the root). The root path displays as /.
Implementations§
Source§impl VirtualPath
impl VirtualPath
Sourcepub fn starts_with(&self, other: &Self) -> bool
pub fn starts_with(&self, other: &Self) -> bool
Returns true if other is a prefix of this path.
Trait Implementations§
Source§impl Clone for VirtualPath
impl Clone for VirtualPath
Source§impl Debug for VirtualPath
impl Debug for VirtualPath
Source§impl Display for VirtualPath
impl Display for VirtualPath
impl Eq for VirtualPath
Source§impl FromStr for VirtualPath
impl FromStr for VirtualPath
Source§impl Hash for VirtualPath
impl Hash for VirtualPath
Source§impl Ord for VirtualPath
impl Ord for VirtualPath
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 VirtualPath
impl PartialEq for VirtualPath
Source§impl PartialOrd for VirtualPath
impl PartialOrd for VirtualPath
impl StructuralPartialEq for VirtualPath
Auto Trait Implementations§
impl Freeze for VirtualPath
impl RefUnwindSafe for VirtualPath
impl Send for VirtualPath
impl Sync for VirtualPath
impl Unpin for VirtualPath
impl UnsafeUnpin for VirtualPath
impl UnwindSafe for VirtualPath
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