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
CheckEntryError(SliceCheckError<ArchivedHashMapEntryError<K, V>>)
An error occured while checking the entries
A displacement value was invalid
A key is not located at the correct position
Show fields
Fields of InvalidKeyPosition
index: usize
The index of the key when iterating
A bounds error occurred
Trait Implementations
impl<K: Error + 'static, V: Error + 'static, C: Error + 'static> Error for HashMapError<K, V, C>
[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<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<ArchivedHashMapEntryError<K, V>>> for HashMapError<K, V, C>
[src]fn from(e: SliceCheckError<ArchivedHashMapEntryError<K, V>>) -> Self
[src]
impl<K, V, C> From<SliceCheckError<Unreachable>> for HashMapError<K, V, C>
[src]
impl<K, V, C> From<SliceCheckError<Unreachable>> for HashMapError<K, V, C>
[src]fn from(e: SliceCheckError<Unreachable>) -> Self
[src]
impl<K, V, C> From<Unreachable> for HashMapError<K, V, C>
[src]
impl<K, V, C> From<Unreachable> for HashMapError<K, V, C>
[src]fn from(_: Unreachable) -> Self
[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> 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> 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> 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> 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,
impl<K, V, C> UnwindSafe for HashMapError<K, V, C> where
C: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata