Enum rkyv::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 occured 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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
Performs the conversion.
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
Performs the conversion.
sourceimpl<C> From<Infallible> for HashIndexError<C>
impl<C> From<Infallible> for HashIndexError<C>
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Performs the conversion.
sourceimpl<C> From<LayoutError> for HashIndexError<C>
impl<C> From<LayoutError> for HashIndexError<C>
sourcefn from(e: LayoutError) -> Self
fn from(e: LayoutError) -> Self
Performs the conversion.
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
Performs the conversion.
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(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> LayoutRaw for T
impl<T> LayoutRaw for T
sourcefn layout_raw(_: *const Self) -> Layout
fn layout_raw(_: *const Self) -> Layout
Gets the layout of the type.