Trait rustc_mir::interpret::HasMemory [−][src]
pub trait HasMemory<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'mir, 'tcx>> { fn memory_mut(&mut self) -> &mut Memory<'a, 'mir, 'tcx, M>; fn memory(&self) -> &Memory<'a, 'mir, 'tcx, M>; fn into_ptr(&self, value: Value) -> EvalResult<'tcx, Scalar> { ... } fn into_ptr_vtable_pair(
&self,
value: Value
) -> EvalResult<'tcx, (Scalar, Pointer)> { ... } fn into_slice(&self, value: Value) -> EvalResult<'tcx, (Scalar, 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?
Required Methods
fn memory_mut(&mut self) -> &mut Memory<'a, 'mir, 'tcx, M>
🔬 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?
fn memory(&self) -> &Memory<'a, 'mir, 'tcx, M>
🔬 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?
Provided Methods
fn into_ptr(&self, value: Value) -> EvalResult<'tcx, Scalar>
🔬 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?
Convert the value into a pointer (or a pointer-sized integer). If the value is a ByRef, this may have to perform a load.
fn into_ptr_vtable_pair(
&self,
value: Value
) -> EvalResult<'tcx, (Scalar, Pointer)>
&self,
value: Value
) -> EvalResult<'tcx, (Scalar, Pointer)>
🔬 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?
fn into_slice(&self, value: Value) -> EvalResult<'tcx, (Scalar, 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?
Implementors
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasMemory<'a, 'mir, 'tcx, M> for Memory<'a, 'mir, 'tcx, M>
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasMemory<'a, 'mir, 'tcx, M> for EvalContext<'a, 'mir, 'tcx, M>