Enum rkyv::std_impl::chd::validation::HashMapError[][src]

pub enum HashMapError<K, V, C> {
    LayoutError(LayoutErr),
    CheckDisplaceError(SliceCheckError<Unreachable>),
    CheckEntryError(SliceCheckError<ArchivedHashMapEntryError<K, V>>),
    InvalidDisplacement {
        index: usize,
        value: u32,
    },
    InvalidKeyPosition {
        index: usize,
    },
    ContextError(C),
}

Errors that can occur while checking an archived hash map.

Variants

LayoutError(LayoutErr)

An error occured while checking the layouts of displacements or entries

CheckDisplaceError(SliceCheckError<Unreachable>)

An error occured while checking the displacements

An error occured while checking the entries

InvalidDisplacement

A displacement value was invalid

Fields of InvalidDisplacement

index: usizevalue: u32
InvalidKeyPosition

A key is not located at the correct position

Fields of InvalidKeyPosition

index: usize

The index of the key when iterating

ContextError(C)

A bounds error occurred

Trait Implementations

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

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

impl<K: Error + 'static, V: Error + 'static, C: Error + 'static> Error for HashMapError<K, V, C>[src]

impl<K, V, C> From<LayoutError> for HashMapError<K, V, C>[src]

impl<K, V, C> From<SliceCheckError<ArchivedHashMapEntryError<K, V>>> for HashMapError<K, V, C>[src]

impl<K, V, C> From<SliceCheckError<Unreachable>> for HashMapError<K, V, C>[src]

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

Auto Trait Implementations

impl<K, V, C> RefUnwindSafe for HashMapError<K, V, C> where
    C: RefUnwindSafe,
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V, C> Send for HashMapError<K, V, C> where
    C: Send,
    K: Send,
    V: Send

impl<K, V, C> Sync for HashMapError<K, V, C> where
    C: Sync,
    K: Sync,
    V: Sync

impl<K, V, C> Unpin for HashMapError<K, V, C> where
    C: Unpin,
    K: Unpin,
    V: Unpin

impl<K, V, C> UnwindSafe for HashMapError<K, V, C> where
    C: UnwindSafe,
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

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

impl<T> ArchivePointee for T[src]

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.

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> Pointee for T[src]

type Metadata = ()

The type for metadata in pointers and references to Self.

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.