Enum bonsaidb_core::key::NonZeroKeyError
source · pub enum NonZeroKeyError {
IncorrectByteLength,
ValueIsZero,
}
Expand description
An error occurred during a Key
or KeyEncoding
implementation for a
non-zero type.
Variants§
IncorrectByteLength
An incorrect number of bytes were encounted for the type specified.
ValueIsZero
A zero value was encountered for a non-zero type.
Trait Implementations§
source§impl Debug for NonZeroKeyError
impl Debug for NonZeroKeyError
source§impl Display for NonZeroKeyError
impl Display for NonZeroKeyError
source§impl Error for NonZeroKeyError
impl Error for NonZeroKeyError
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 From<TryFromSliceError> for NonZeroKeyError
impl From<TryFromSliceError> for NonZeroKeyError
source§fn from(_value: TryFromSliceError) -> Self
fn from(_value: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for NonZeroKeyError
impl Send for NonZeroKeyError
impl Sync for NonZeroKeyError
impl Unpin for NonZeroKeyError
impl UnwindSafe for NonZeroKeyError
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