Enum relative_path::FromPathErrorKind
source · #[non_exhaustive]pub enum FromPathErrorKind {
NonRelative,
NonUtf8,
BadSeparator,
}
Expand description
Error kind for FromPathError
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonRelative
Non-relative component in path.
NonUtf8
Non-utf8 component in path.
BadSeparator
Trying to convert a platform-specific path which uses a platform-specific separator.
Trait Implementations§
source§impl Clone for FromPathErrorKind
impl Clone for FromPathErrorKind
source§fn clone(&self) -> FromPathErrorKind
fn clone(&self) -> FromPathErrorKind
Returns a copy 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 Debug for FromPathErrorKind
impl Debug for FromPathErrorKind
source§impl From<FromPathErrorKind> for FromPathError
impl From<FromPathErrorKind> for FromPathError
source§fn from(value: FromPathErrorKind) -> Self
fn from(value: FromPathErrorKind) -> Self
Converts to this type from the input type.
source§impl PartialEq for FromPathErrorKind
impl PartialEq for FromPathErrorKind
source§fn eq(&self, other: &FromPathErrorKind) -> bool
fn eq(&self, other: &FromPathErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FromPathErrorKind
impl Eq for FromPathErrorKind
impl StructuralPartialEq for FromPathErrorKind
Auto Trait Implementations§
impl Freeze for FromPathErrorKind
impl RefUnwindSafe for FromPathErrorKind
impl Send for FromPathErrorKind
impl Sync for FromPathErrorKind
impl Unpin for FromPathErrorKind
impl UnwindSafe for FromPathErrorKind
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