pub struct PointerRepr {
pub kind: PointerKind,
pub addr_bytes: usize,
}Expand description
Represents a pointer with its kind and target address width.
Fields§
§kind: PointerKindKind of this pointer.
addr_bytes: usizeAddress size in bytes (e.g. 8 on 64-bit).
Implementations§
Source§impl PointerRepr
impl PointerRepr
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Total size in bytes of this pointer representation.
Auto Trait Implementations§
impl Freeze for PointerRepr
impl RefUnwindSafe for PointerRepr
impl Send for PointerRepr
impl Sync for PointerRepr
impl Unpin for PointerRepr
impl UnsafeUnpin for PointerRepr
impl UnwindSafe for PointerRepr
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