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 Freeze for RelPtrError
impl RefUnwindSafe for RelPtrError
impl Send for RelPtrError
impl Sync for RelPtrError
impl Unpin for RelPtrError
impl UnwindSafe for RelPtrError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§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