pub struct IndexError(/* private fields */);Expand description
Index error.
Implementations§
Source§impl IndexError
impl IndexError
Sourcepub fn kind(&self) -> IndexErrorKind
pub fn kind(&self) -> IndexErrorKind
Error kind.
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Returns true if this error is NotFound.
Sourcepub fn is_storage_corrupted(&self) -> bool
pub fn is_storage_corrupted(&self) -> bool
Returns true if this error a StorageCorrupted.
Trait Implementations§
Source§impl Debug for IndexError
impl Debug for IndexError
Source§impl Display for IndexError
impl Display for IndexError
Source§impl Error for IndexError
impl Error for IndexError
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<SerializerError> for IndexError
impl From<SerializerError> for IndexError
Source§fn from(error: SerializerError) -> Self
fn from(error: SerializerError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for IndexError
impl From<StorageError> for IndexError
Source§fn from(error: StorageError) -> Self
fn from(error: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexError
impl !RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl !UnwindSafe for IndexError
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