pub enum ByteDictError {
EntryTooLong {
got: usize,
},
PoolOverflow {
attempted: usize,
current: usize,
},
UnknownCategory,
Frozen,
ExplicitOrderingHasDuplicates,
OtherCodeNotInDictionary {
code: u64,
},
}Variants§
EntryTooLong
Single entry exceeded u32::MAX bytes.
PoolOverflow
Total pool would exceed u32::MAX bytes.
UnknownCategory
Attempted to intern into a frozen dictionary with Error policy.
Frozen
Attempted to intern into a frozen dictionary.
ExplicitOrderingHasDuplicates
Explicit ordering was provided but contains duplicates.
OtherCodeNotInDictionary
MapToOther policy was used but the other_code is not present
in the dictionary.
Trait Implementations§
Source§impl Clone for ByteDictError
impl Clone for ByteDictError
Source§fn clone(&self) -> ByteDictError
fn clone(&self) -> ByteDictError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ByteDictError
impl Debug for ByteDictError
Source§impl Display for ByteDictError
impl Display for ByteDictError
Source§impl Error for ByteDictError
impl Error for ByteDictError
1.30.0 · 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 PartialEq for ByteDictError
impl PartialEq for ByteDictError
impl Eq for ByteDictError
impl StructuralPartialEq for ByteDictError
Auto Trait Implementations§
impl Freeze for ByteDictError
impl RefUnwindSafe for ByteDictError
impl Send for ByteDictError
impl Sync for ByteDictError
impl Unpin for ByteDictError
impl UnsafeUnpin for ByteDictError
impl UnwindSafe for ByteDictError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more