#[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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)