#[repr(u8)]pub enum HashTableError {
AllocationError = 0,
LengthLimitExceeded = 1,
AllocatorCloningError = 2,
}Expand description
Represents a general issue that can occure when dealing with hash tables.
Variants§
AllocationError = 0
The underlying allocator returned an error, likely due to out of memory.
LengthLimitExceeded = 1
Tried to initialize a hash table or push to it beyond its internal limit.
AllocatorCloningError = 2
The underlying allocator cloning failed.
Trait Implementations§
Source§impl Clone for HashTableError
impl Clone for HashTableError
Source§fn clone(&self) -> HashTableError
fn clone(&self) -> HashTableError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HashTableError
Source§impl Debug for HashTableError
impl Debug for HashTableError
Source§impl Display for HashTableError
impl Display for HashTableError
impl Eq for HashTableError
Source§impl From<HashTableError> for TryCloneHashTableError
impl From<HashTableError> for TryCloneHashTableError
Source§fn from(error: HashTableError) -> Self
fn from(error: HashTableError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for HashTableError
impl From<Infallible> for HashTableError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl Hash for HashTableError
impl Hash for HashTableError
Source§impl PartialEq for HashTableError
impl PartialEq for HashTableError
Source§fn eq(&self, other: &HashTableError) -> bool
fn eq(&self, other: &HashTableError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for HashTableError
impl ReprC for HashTableError
impl StructuralPartialEq for HashTableError
Auto Trait Implementations§
impl Freeze for HashTableError
impl RefUnwindSafe for HashTableError
impl Send for HashTableError
impl Sync for HashTableError
impl Unpin for HashTableError
impl UnsafeUnpin for HashTableError
impl UnwindSafe for HashTableError
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