Enum rkyv::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§
source§impl Clone for OffsetError
impl Clone for OffsetError
source§fn clone(&self) -> OffsetError
fn clone(&self) -> OffsetError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OffsetError
impl Debug for OffsetError
source§impl Display for OffsetError
impl Display for OffsetError
source§impl Error for OffsetError
impl Error for OffsetError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for OffsetError
impl PartialEq for OffsetError
source§fn 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 ==
.impl Copy for OffsetError
impl Eq for OffsetError
impl StructuralPartialEq for OffsetError
Auto Trait Implementations§
impl Freeze for OffsetError
impl RefUnwindSafe for OffsetError
impl Send for OffsetError
impl Sync for OffsetError
impl Unpin for OffsetError
impl UnwindSafe for OffsetError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn 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.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more