Enum rkyv_test::collections::hash_index::validation::HashIndexError
source · [−]pub enum HashIndexError<C> {
LayoutError(LayoutError),
InvalidDisplacement {
index: usize,
value: u32,
},
ContextError(C),
}
Expand description
Errors that can occur while checking an archived hash index.
Variants
LayoutError(LayoutError)
An error occurred while checking the layouts of displacements or entries
InvalidDisplacement
Fields
index: usize
The index of the entry with an invalid displacement
value: u32
The value of the entry at the invalid location
A displacement value was invalid
ContextError(C)
A bounds error occurred
Trait Implementations
sourceimpl<C: Debug> Debug for HashIndexError<C>
impl<C: Debug> Debug for HashIndexError<C>
sourceimpl<C: Display> Display for HashIndexError<C>
impl<C: Display> Display for HashIndexError<C>
sourceimpl<C: Error + 'static> Error for HashIndexError<C>
impl<C: Error + 'static> Error for HashIndexError<C>
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<K, V, C> From<HashIndexError<C>> for HashMapError<K, V, C>
impl<K, V, C> From<HashIndexError<C>> for HashMapError<K, V, C>
sourcefn from(e: HashIndexError<C>) -> Self
fn from(e: HashIndexError<C>) -> Self
Converts to this type from the input type.
sourceimpl<K, V, C> From<HashIndexError<C>> for IndexMapError<K, V, C>
impl<K, V, C> From<HashIndexError<C>> for IndexMapError<K, V, C>
sourcefn from(e: HashIndexError<C>) -> Self
fn from(e: HashIndexError<C>) -> Self
Converts to this type from the input type.
sourceimpl<C> From<Infallible> for HashIndexError<C>
impl<C> From<Infallible> for HashIndexError<C>
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
sourceimpl<C> From<LayoutError> for HashIndexError<C>
impl<C> From<LayoutError> for HashIndexError<C>
sourcefn from(e: LayoutError) -> Self
fn from(e: LayoutError) -> Self
Converts to this type from the input type.
sourceimpl<C> From<SliceCheckError<Infallible>> for HashIndexError<C>
impl<C> From<SliceCheckError<Infallible>> for HashIndexError<C>
sourcefn from(_: SliceCheckError<Infallible>) -> Self
fn from(_: SliceCheckError<Infallible>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<C> RefUnwindSafe for HashIndexError<C>where
C: RefUnwindSafe,
impl<C> Send for HashIndexError<C>where
C: Send,
impl<C> Sync for HashIndexError<C>where
C: Sync,
impl<C> Unpin for HashIndexError<C>where
C: Unpin,
impl<C> UnwindSafe for HashIndexError<C>where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more