Enum packed_ptr::PackedPtrError
source · pub enum PackedPtrError {
UnalignedAddress,
DataOverflow,
UnsafeConfig,
}Expand description
Error type for PackedPtr::new & TypedPackedPtr::new.
Variants§
UnalignedAddress
The address is not aligned to the required alignment.
DataOverflow
The data is too large to pack into the pointer.
UnsafeConfig
The provided PtrCfg would result in UB if used with
provided pointer.
Trait Implementations§
source§impl Clone for PackedPtrError
impl Clone for PackedPtrError
source§fn clone(&self) -> PackedPtrError
fn clone(&self) -> PackedPtrError
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 PackedPtrError
impl Debug for PackedPtrError
source§impl Display for PackedPtrError
impl Display for PackedPtrError
source§impl PartialEq for PackedPtrError
impl PartialEq for PackedPtrError
source§fn eq(&self, other: &PackedPtrError) -> bool
fn eq(&self, other: &PackedPtrError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PackedPtrError
impl Eq for PackedPtrError
impl StructuralEq for PackedPtrError
impl StructuralPartialEq for PackedPtrError
Auto Trait Implementations§
impl RefUnwindSafe for PackedPtrError
impl Send for PackedPtrError
impl Sync for PackedPtrError
impl Unpin for PackedPtrError
impl UnwindSafe for PackedPtrError
Blanket Implementations§
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