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
sourceimpl Clone for FromPathErrorKind
impl Clone for FromPathErrorKind
sourcefn clone(&self) -> FromPathErrorKind
fn clone(&self) -> FromPathErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FromPathErrorKind
impl Debug for FromPathErrorKind
sourceimpl From<FromPathErrorKind> for FromPathError
impl From<FromPathErrorKind> for FromPathError
sourcefn from(value: FromPathErrorKind) -> Self
fn from(value: FromPathErrorKind) -> Self
Converts to this type from the input type.
impl Copy for FromPathErrorKind
impl Eq for FromPathErrorKind
impl StructuralEq for FromPathErrorKind
impl StructuralPartialEq for FromPathErrorKind
Auto Trait Implementations
impl RefUnwindSafe for FromPathErrorKind
impl Send for FromPathErrorKind
impl Sync for FromPathErrorKind
impl Unpin for FromPathErrorKind
impl UnwindSafe for FromPathErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more