pub struct UnifiedPath<'a> { /* private fields */ }Expand description
A unified path.
Implementations§
Source§impl<'a> UnifiedPath<'a>
impl<'a> UnifiedPath<'a>
Sourcepub fn components(&self) -> &[Component<'a>]
pub fn components(&self) -> &[Component<'a>]
Returns the components.
Trait Implementations§
Source§impl<'a> Clone for UnifiedPath<'a>
impl<'a> Clone for UnifiedPath<'a>
Source§fn clone(&self) -> UnifiedPath<'a>
fn clone(&self) -> UnifiedPath<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UnifiedPath<'a>
impl<'a> Debug for UnifiedPath<'a>
Source§impl<'a> From<&'a PosixPath> for UnifiedPath<'a>
impl<'a> From<&'a PosixPath> for UnifiedPath<'a>
Source§impl<'a> From<&'a WindowsPath> for UnifiedPath<'a>
impl<'a> From<&'a WindowsPath> for UnifiedPath<'a>
Source§fn from(path: &'a WindowsPath) -> Self
fn from(path: &'a WindowsPath) -> Self
Converts to this type from the input type.
Source§impl<'a> FromIterator<Component<'a>> for UnifiedPath<'a>
impl<'a> FromIterator<Component<'a>> for UnifiedPath<'a>
Source§impl<'a> IntoIterator for UnifiedPath<'a>
impl<'a> IntoIterator for UnifiedPath<'a>
Source§impl<'a> Ord for UnifiedPath<'a>
impl<'a> Ord for UnifiedPath<'a>
Source§fn cmp(&self, other: &UnifiedPath<'a>) -> Ordering
fn cmp(&self, other: &UnifiedPath<'a>) -> Ordering
1.21.0 · 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
Source§impl<'a> PartialEq for UnifiedPath<'a>
impl<'a> PartialEq for UnifiedPath<'a>
Source§impl<'a> PartialOrd for UnifiedPath<'a>
impl<'a> PartialOrd for UnifiedPath<'a>
Source§impl<'a> PurePath for UnifiedPath<'a>
impl<'a> PurePath for UnifiedPath<'a>
Source§fn join_in_place(&mut self, path: &Self)
fn join_in_place(&mut self, path: &Self)
Joins the given path in place.
Source§fn is_absolute(&self) -> bool
fn is_absolute(&self) -> bool
Returns whether the path is absolute.
Source§fn components(&self) -> impl DoubleEndedIterator<Item = Component<'_>>
fn components(&self) -> impl DoubleEndedIterator<Item = Component<'_>>
Returns the components of the path.
impl<'a> Eq for UnifiedPath<'a>
impl<'a> StructuralPartialEq for UnifiedPath<'a>
Auto Trait Implementations§
impl<'a> Freeze for UnifiedPath<'a>
impl<'a> RefUnwindSafe for UnifiedPath<'a>
impl<'a> Send for UnifiedPath<'a>
impl<'a> Sync for UnifiedPath<'a>
impl<'a> Unpin for UnifiedPath<'a>
impl<'a> UnwindSafe for UnifiedPath<'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