Enum btlib::BlockPathError
source · pub enum BlockPathError {
PathTooLong(usize),
Empty,
InvalidLeadingComponent,
NotContained,
NotRelative,
NotAbsolute,
}
Expand description
Errors which can occur when converting a string to a Path
.
Variants§
PathTooLong(usize)
Occurs when the number of bytes in a string is greater than Path::BYTE_LIMIT
.
Empty
Indicates that a path string was empty.
InvalidLeadingComponent
Occurs when the leading component of a path is not in the correct format.
NotContained
Occurs when one path was expected to be contained in another, but that was not the case.
NotRelative
Indicates that a relative path was expected, but an absolute path was encountered.
NotAbsolute
Indicates that an absolute path was expected, but a relative path was encountered.
Trait Implementations§
source§impl Debug for BlockPathError
impl Debug for BlockPathError
source§impl Display for BlockPathError
impl Display for BlockPathError
source§impl Error for BlockPathError
impl Error for BlockPathError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<BlockPathError> for BlockPathError
impl PartialEq<BlockPathError> for BlockPathError
source§fn eq(&self, other: &BlockPathError) -> bool
fn eq(&self, other: &BlockPathError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockPathError
impl StructuralEq for BlockPathError
impl StructuralPartialEq for BlockPathError
Auto Trait Implementations§
impl RefUnwindSafe for BlockPathError
impl Send for BlockPathError
impl Sync for BlockPathError
impl Unpin for BlockPathError
impl UnwindSafe for BlockPathError
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