[−][src]Struct rustc_mir::interpret::Pointer
Represents a pointer in the Miri engine.
Pointer is generic over the Tag associated with each pointer,
which is used to do provenance tracking during execution.
Fields
alloc_id: AllocIdoffset: Sizetag: TagImplementations
impl Pointer<()>[src]
pub fn new(alloc_id: AllocId, offset: Size) -> Pointer<()>[src]
pub fn with_tag<Tag>(self, tag: Tag) -> Pointer<Tag>[src]
impl<'tcx, Tag> Pointer<Tag>[src]
pub fn new_with_tag(alloc_id: AllocId, offset: Size, tag: Tag) -> Pointer<Tag>[src]
pub fn offset(
self,
i: Size,
cx: &impl HasDataLayout
) -> Result<Pointer<Tag>, InterpErrorInfo<'tcx>>[src]
self,
i: Size,
cx: &impl HasDataLayout
) -> Result<Pointer<Tag>, InterpErrorInfo<'tcx>>
pub fn overflowing_offset(
self,
i: Size,
cx: &impl HasDataLayout
) -> (Pointer<Tag>, bool)[src]
self,
i: Size,
cx: &impl HasDataLayout
) -> (Pointer<Tag>, bool)
pub fn wrapping_offset(self, i: Size, cx: &impl HasDataLayout) -> Pointer<Tag>[src]
pub fn signed_offset(
self,
i: i64,
cx: &impl HasDataLayout
) -> Result<Pointer<Tag>, InterpErrorInfo<'tcx>>[src]
self,
i: i64,
cx: &impl HasDataLayout
) -> Result<Pointer<Tag>, InterpErrorInfo<'tcx>>
pub fn overflowing_signed_offset(
self,
i: i64,
cx: &impl HasDataLayout
) -> (Pointer<Tag>, bool)[src]
self,
i: i64,
cx: &impl HasDataLayout
) -> (Pointer<Tag>, bool)
pub fn wrapping_signed_offset(
self,
i: i64,
cx: &impl HasDataLayout
) -> Pointer<Tag>[src]
self,
i: i64,
cx: &impl HasDataLayout
) -> Pointer<Tag>
pub fn erase_tag(self) -> Pointer<()>[src]
Trait Implementations
impl<Tag> Clone for Pointer<Tag> where
Tag: Clone, [src]
Tag: Clone,
impl<Tag> Copy for Pointer<Tag> where
Tag: Copy, [src]
Tag: Copy,
impl<Tag> Debug for Pointer<Tag> where
Tag: Debug, [src]
Tag: Debug,
impl Debug for Pointer<()>[src]
impl<Tag> Display for Pointer<Tag> where
Tag: Debug, [src]
Tag: Debug,
impl<Tag> Eq for Pointer<Tag> where
Tag: Eq, [src]
Tag: Eq,
impl From<AllocId> for Pointer<()>[src]
Produces a Pointer that points to the beginning of the Allocation.
impl<Tag> From<Pointer<Tag>> for ScalarMaybeUninit<Tag>[src]
fn from(s: Pointer<Tag>) -> ScalarMaybeUninit<Tag>[src]
impl<Tag> From<Pointer<Tag>> for Scalar<Tag>[src]
impl<Tag> From<Pointer<Tag>> for Immediate<Tag>[src]
impl<Tag> Hash for Pointer<Tag> where
Tag: Hash, [src]
Tag: Hash,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<Tag> Ord for Pointer<Tag> where
Tag: Ord, [src]
Tag: Ord,
fn cmp(&self, other: &Pointer<Tag>) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<Tag> PartialEq<Pointer<Tag>> for Pointer<Tag> where
Tag: PartialEq<Tag>, [src]
Tag: PartialEq<Tag>,
impl<Tag> PartialOrd<Pointer<Tag>> for Pointer<Tag> where
Tag: PartialOrd<Tag>, [src]
Tag: PartialOrd<Tag>,
Auto Trait Implementations
impl<Tag> RefUnwindSafe for Pointer<Tag> where
Tag: RefUnwindSafe,
Tag: RefUnwindSafe,
impl<Tag> Send for Pointer<Tag> where
Tag: Send,
Tag: Send,
impl<Tag> Sync for Pointer<Tag> where
Tag: Sync,
Tag: Sync,
impl<Tag> Unpin for Pointer<Tag> where
Tag: Unpin,
Tag: Unpin,
impl<Tag> UnwindSafe for Pointer<Tag> where
Tag: UnwindSafe,
Tag: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.