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
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
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 PartialEq<OffsetError> for OffsetError
impl PartialEq<OffsetError> for OffsetError
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(_: &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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more