pub enum ReadError {
Io(Error),
InvalidMagicNumber([u8; 4]),
InvalidMinShift(TryFromIntError),
InvalidDepth(TryFromIntError),
InvalidHeader(ReadError),
InvalidReferenceSequences(ReadError),
}
Expand description
An error returned when a coordinate-sorted index fails to be read.
Variants§
Io(Error)
I/O error.
InvalidMagicNumber([u8; 4])
The magic number is invalid.
InvalidMinShift(TryFromIntError)
The min shift is invalid.
InvalidDepth(TryFromIntError)
The depth is invalid.
InvalidHeader(ReadError)
The header is invalid.
InvalidReferenceSequences(ReadError)
A reference sequence is invalid.
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
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()
Auto Trait Implementations§
impl Freeze for ReadError
impl !RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl !UnwindSafe for ReadError
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