Enum rkyv::rel_ptr::RelPtrError
source · [−]pub enum RelPtrError {
OffsetError,
}
Expand description
Errors that can occur while creating raw relative pointers.
Variants
OffsetError
The given from
and to
positions for the relative pointer failed to form a valid offset.
This is probably because the distance between them could not be represented by the offset type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RelPtrError
impl Send for RelPtrError
impl Sync for RelPtrError
impl Unpin for RelPtrError
impl UnwindSafe for RelPtrError
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