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<FromPathErrorKind> for FromPathErrorKind
impl PartialEq<FromPathErrorKind> 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 ==
.