Enum bonsaidb::core::key::NonZeroKeyError
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§
§impl Debug for NonZeroKeyError
impl Debug for NonZeroKeyError
§impl Display for NonZeroKeyError
impl Display for NonZeroKeyError
§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()
§impl From<TryFromSliceError> for NonZeroKeyError
impl From<TryFromSliceError> for NonZeroKeyError
§fn from(_value: TryFromSliceError) -> NonZeroKeyError
fn from(_value: TryFromSliceError) -> NonZeroKeyError
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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