pub struct VPath<'a> { /* private fields */ }Expand description
A borrowed virtual path with an explicit separator policy.
Implementations§
Source§impl<'a> VPath<'a>
impl<'a> VPath<'a>
Sourcepub const fn with_separators(path: &'a str, separators: Separators) -> Self
pub const fn with_separators(path: &'a str, separators: Separators) -> Self
Creates a virtual path with the given separator policy.
Sourcepub const fn separators(self) -> Separators
pub const fn separators(self) -> Separators
Returns the separator policy.
Sourcepub fn components(self) -> Components<'a> ⓘ
pub fn components(self) -> Components<'a> ⓘ
Iterates over lexical components.
Sourcepub fn is_absolute(self) -> bool
pub fn is_absolute(self) -> bool
Returns whether the path begins with a recognized separator.
Sourcepub fn split_file(self) -> Option<(Self, &'a str)>
pub fn split_file(self) -> Option<(Self, &'a str)>
Splits the path into its raw parent view and final normal component.
Trait Implementations§
impl<'a> Copy for VPath<'a>
impl<'a> Eq for VPath<'a>
impl<'a> StructuralPartialEq for VPath<'a>
Auto Trait Implementations§
impl<'a> Freeze for VPath<'a>
impl<'a> RefUnwindSafe for VPath<'a>
impl<'a> Send for VPath<'a>
impl<'a> Sync for VPath<'a>
impl<'a> Unpin for VPath<'a>
impl<'a> UnsafeUnpin for VPath<'a>
impl<'a> UnwindSafe for VPath<'a>
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