Struct rustc_middle::mir::interpret::pointer::Pointer [−][src]
Expand description
Represents a pointer in the Miri engine.
Pointers are “tagged” with provenance information; typically the AllocId they belong to.
Fields
offset: Sizeprovenance: TagImplementations
Obtain the constituents of this pointer. Not that the meaning of the offset depends on the type Tag!
This function must only be used in the implementation of Machine::ptr_get_alloc,
and when a Pointer is taken apart to be stored efficiently in an Allocation.
Trait Implementations
Produces a Pointer that points to the beginning of the Allocation.
impl<'__ctx, Tag> HashStable<StableHashingContext<'__ctx>> for Pointer<Tag> where
Tag: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, Tag> HashStable<StableHashingContext<'__ctx>> for Pointer<Tag> where
Tag: HashStable<StableHashingContext<'__ctx>>,
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<Tag> RefUnwindSafe for Pointer<Tag> where
Tag: RefUnwindSafe,
impl<Tag> UnwindSafe for Pointer<Tag> where
Tag: UnwindSafe,
Blanket Implementations
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.