Expand description
Pointer provenance (tag).
Variants
Concrete
Wildcard
Trait Implementations
sourceimpl Provenance for Tag
impl Provenance for Tag
sourceconst OFFSET_IS_ADDR: bool = true
const OFFSET_IS_ADDR: bool = true
We use absolute addresses in the offset of a Pointer<Tag>.
sourceconst ERR_ON_PARTIAL_PTR_OVERWRITE: bool = false
const ERR_ON_PARTIAL_PTR_OVERWRITE: bool = false
We cannot err on partial overwrites, it happens too often in practice (due to unions).
sourcefn fmt(ptr: &Pointer<Self>, f: &mut Formatter<'_>) -> Result
fn fmt(ptr: &Pointer<Self>, f: &mut Formatter<'_>) -> Result
Determines how a pointer should be printed.
sourcefn get_alloc_id(self) -> Option<AllocId>
fn get_alloc_id(self) -> Option<AllocId>
If OFFSET_IS_ADDR == false, provenance must always be able to
identify the allocation this ptr points to (i.e., this must return Some).
Otherwise this function is best-effort (but must agree with Machine::ptr_get_alloc).
(Identifying the offset in that allocation, however, is harder – use Memory::ptr_get_alloc for that.) Read more
impl Copy for Tag
impl Eq for Tag
impl StructuralEq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Concrete: 16 bytesWildcard: 0 bytes