pub enum Component<'a> {
RootDir,
AppDefined,
CurDir,
ParentDir,
Normal(Path<'a>),
}
Expand description
A component of a path.
Variants§
RootDir
Signals the path component “/”.
AppDefined
Signals the path component “//”.
CurDir
Signals the “.” path component.
ParentDir
Signals the “..” path component.
Normal(Path<'a>)
Signals a component that doesn’t match any of the special components.
Trait Implementations§
Source§impl<'a> Ord for Component<'a>
impl<'a> Ord for Component<'a>
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> PartialOrd for Component<'a>
impl<'a> PartialOrd for Component<'a>
impl<'a> Eq for Component<'a>
impl<'a> StructuralPartialEq for Component<'a>
Auto Trait Implementations§
impl<'a> Freeze for Component<'a>
impl<'a> RefUnwindSafe for Component<'a>
impl<'a> Send for Component<'a>
impl<'a> Sync for Component<'a>
impl<'a> Unpin for Component<'a>
impl<'a> UnwindSafe for Component<'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