[][src]Enum rkyv::std_impl::hashbrown::validation::ArchivedHashMapError

pub enum ArchivedHashMapError<K, V> {
    InvalidItemCount {
        expected_items: usize,
        actual_items: usize,
    },
    MemoryError(ArchiveMemoryError),
    BucketError(ArchivedBucketError<K, V>),
    IncorrectKeyHash {
        index: usize,
    },
}

Errors that can occur while checking an ArchivedHashMap.

Variants

InvalidItemCount

The number of items the hashmap claims to have doesn't match the actual number of items as indicated by the control bytes.

Fields of InvalidItemCount

expected_items: usize

The number of items the hashmap claims to have

actual_items: usize

The actual number of items in the hashmap

MemoryError(ArchiveMemoryError)

A memory error occurred

BucketError(ArchivedBucketError<K, V>)

An error occured while checking the bytes of a bucket

IncorrectKeyHash

A key is placed in the wrong bucket

Fields of IncorrectKeyHash

index: usize

The index of the key when iterating

Trait Implementations

impl<K: Debug, V: Debug> Debug for ArchivedHashMapError<K, V>[src]

impl<K: Display, V: Display> Display for ArchivedHashMapError<K, V>[src]

impl<K: Debug + Display, V: Debug + Display> Error for ArchivedHashMapError<K, V>[src]

impl<K, V> From<ArchiveMemoryError> for ArchivedHashMapError<K, V>[src]

impl<K, V> From<ArchivedBucketError<K, V>> for ArchivedHashMapError<K, V>[src]

impl<K, V> From<Unreachable> for ArchivedHashMapError<K, V>[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for ArchivedHashMapError<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for ArchivedHashMapError<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for ArchivedHashMapError<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for ArchivedHashMapError<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for ArchivedHashMapError<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.