pub enum RelativePathErrorKind {
Absolute,
OutOfBounds,
InvalidUtf8,
}Variants§
Absolute
The path was an absolute path, where a relative one was expected.
OutOfBounds
The path pointed to something outside of the containing directory.
InvalidUtf8
The path contains invalid UTF-8.
Trait Implementations§
Source§impl Clone for RelativePathErrorKind
impl Clone for RelativePathErrorKind
Source§fn clone(&self) -> RelativePathErrorKind
fn clone(&self) -> RelativePathErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelativePathErrorKind
Source§impl Debug for RelativePathErrorKind
impl Debug for RelativePathErrorKind
Source§impl Display for RelativePathErrorKind
impl Display for RelativePathErrorKind
impl Eq for RelativePathErrorKind
Source§impl Error for RelativePathErrorKind
impl Error for RelativePathErrorKind
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 Hash for RelativePathErrorKind
impl Hash for RelativePathErrorKind
Source§impl PartialEq for RelativePathErrorKind
impl PartialEq for RelativePathErrorKind
Source§fn eq(&self, other: &RelativePathErrorKind) -> bool
fn eq(&self, other: &RelativePathErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RelativePathErrorKind
Auto Trait Implementations§
impl Freeze for RelativePathErrorKind
impl RefUnwindSafe for RelativePathErrorKind
impl Send for RelativePathErrorKind
impl Sync for RelativePathErrorKind
impl Unpin for RelativePathErrorKind
impl UnsafeUnpin for RelativePathErrorKind
impl UnwindSafe for RelativePathErrorKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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