Struct rustc::mir::interpret::MemoryPointer
[−]
[src]
pub struct MemoryPointer {
pub alloc_id: AllocId,
pub offset: u64,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
alloc_id: AllocId
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
offset: u64
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl<'tcx> MemoryPointer[src]
pub fn new(alloc_id: AllocId, offset: u64) -> Self[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn overflowing_signed_offset<C: HasDataLayout>(
self,
i: i128,
cx: C
) -> (Self, bool)[src]
self,
i: i128,
cx: C
) -> (Self, bool)
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn overflowing_offset<C: HasDataLayout>(self, i: u64, cx: C) -> (Self, bool)[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn offset<C: HasDataLayout>(self, i: u64, cx: C) -> EvalResult<'tcx, Self>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl From<MemoryPointer> for Pointer[src]
fn from(ptr: MemoryPointer) -> Self[src]
Performs the conversion.
impl Copy for MemoryPointer[src]
impl Clone for MemoryPointer[src]
fn clone(&self) -> MemoryPointer[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for MemoryPointer[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for MemoryPointer[src]
impl PartialEq for MemoryPointer[src]
fn eq(&self, __arg_0: &MemoryPointer) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &MemoryPointer) -> bool[src]
This method tests for !=.