pub enum InvalidPathError {
PathTooLong,
TooManyComponents,
}
Expand description
An error arising from trying to construct a invalid Path
from valid components.
Variants§
PathTooLong
The path’s total length in bytes is too large.
TooManyComponents
The path has too many components.
Trait Implementations§
Source§impl Clone for InvalidPathError
impl Clone for InvalidPathError
Source§fn clone(&self) -> InvalidPathError
fn clone(&self) -> InvalidPathError
Returns a duplicate 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 InvalidPathError
impl Debug for InvalidPathError
Source§impl Display for InvalidPathError
impl Display for InvalidPathError
Source§impl Error for InvalidPathError
impl Error for InvalidPathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InvalidPathError> for Blame
impl From<InvalidPathError> for Blame
Source§fn from(_value: InvalidPathError) -> Self
fn from(_value: InvalidPathError) -> Self
Converts to this type from the input type.
Source§impl Ord for InvalidPathError
impl Ord for InvalidPathError
Source§fn cmp(&self, other: &InvalidPathError) -> Ordering
fn cmp(&self, other: &InvalidPathError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InvalidPathError
impl PartialEq for InvalidPathError
Source§impl PartialOrd for InvalidPathError
impl PartialOrd for InvalidPathError
impl Copy for InvalidPathError
impl Eq for InvalidPathError
impl StructuralPartialEq for InvalidPathError
Auto Trait Implementations§
impl Freeze for InvalidPathError
impl RefUnwindSafe for InvalidPathError
impl Send for InvalidPathError
impl Sync for InvalidPathError
impl Unpin for InvalidPathError
impl UnwindSafe for InvalidPathError
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more