pub enum PointerKind {
Raw,
Fat {
metadata_size: usize,
},
Tagged {
tag_bits: u32,
},
VTable {
num_methods: usize,
},
}Expand description
A pointer representation descriptor (tagged, fat, raw, vtable).
Variants§
Raw
A simple raw pointer.
Fat
A fat pointer: (data, metadata).
Tagged
A tagged pointer: low bits encode a tag.
VTable
A vtable pointer for a trait object.
Auto Trait Implementations§
impl Freeze for PointerKind
impl RefUnwindSafe for PointerKind
impl Send for PointerKind
impl Sync for PointerKind
impl Unpin for PointerKind
impl UnsafeUnpin for PointerKind
impl UnwindSafe for PointerKind
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