pub enum ErrorKind {
Empty,
CurrentDirectoryMarker,
ParentDirectoryMarker,
ContainsForwardSlash,
ContainsNullByte,
ContainsUnassignedChar,
}Expand description
The kind of error that occurred during path element normalization or validation.
See Error for the full error type, which also carries the original input string.
Variants§
Empty
The name is empty (or becomes empty after whitespace trimming).
CurrentDirectoryMarker
The name is ., the current directory marker.
ParentDirectoryMarker
The name is .., the parent directory marker.
ContainsForwardSlash
The name contains a forward slash (/), which is a path separator.
ContainsNullByte
The name contains a null byte (\0), which all OSes treat as a string
terminator, silently truncating the name.
ContainsUnassignedChar
The name contains a Unicode code point that is not assigned in the version of Unicode used by this crate.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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