pub struct Pointer<Prov = AllocId> {
pub(super) offset: Size,
pub provenance: Prov,
}
Expand description
Represents a pointer in the Miri engine.
Pointers are “tagged” with provenance information; typically the AllocId
they belong to.
Fields§
§offset: Size
§provenance: Prov
Trait Implementations§
Auto Trait Implementations§
impl<Prov> RefUnwindSafe for Pointer<Prov>where Prov: RefUnwindSafe,
impl<Prov> Send for Pointer<Prov>where Prov: Send,
impl<Prov> Sync for Pointer<Prov>where Prov: Sync,
impl<Prov> Unpin for Pointer<Prov>where Prov: Unpin,
impl<Prov> UnwindSafe for Pointer<Prov>where Prov: UnwindSafe,
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.