Enum rkyv_test::rel_ptr::OffsetError
source · [−]pub enum OffsetError {
IsizeOverflow,
ExceedsStorageRange,
}
Expand description
An error where the distance between two positions cannot be represented by the offset type.
Variants
IsizeOverflow
The offset overflowed the range of isize
ExceedsStorageRange
The offset is too far for the offset type of the relative pointer
Trait Implementations
sourceimpl Clone for OffsetError
impl Clone for OffsetError
sourcefn clone(&self) -> OffsetError
fn clone(&self) -> OffsetError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OffsetError
impl Debug for OffsetError
sourceimpl Display for OffsetError
impl Display for OffsetError
sourceimpl Error for OffsetError
impl Error for OffsetError
1.30.0 · 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
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<OffsetError> for OffsetError
impl PartialEq<OffsetError> for OffsetError
sourcefn eq(&self, other: &OffsetError) -> bool
fn eq(&self, other: &OffsetError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for OffsetError
impl Eq for OffsetError
impl StructuralEq for OffsetError
impl StructuralPartialEq for OffsetError
Auto Trait Implementations
impl RefUnwindSafe for OffsetError
impl Send for OffsetError
impl Sync for OffsetError
impl Unpin for OffsetError
impl UnwindSafe for OffsetError
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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