Struct rustc_mir::interpret::memory::Memory [−][src]
pub struct Memory<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'mir, 'tcx>> { pub data: M::MemoryData, alloc_kind: FxHashMap<AllocId, MemoryKind<M::MemoryKinds>>, alloc_map: FxHashMap<AllocId, Allocation>, pub cur_frame: usize, pub tcx: TyCtxtAt<'a, 'tcx, 'tcx>, }
🔬 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
data: M::MemoryData
🔬 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?
Additional data required by the Machine
alloc_kind: FxHashMap<AllocId, MemoryKind<M::MemoryKinds>>
🔬 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?
Helps guarantee that stack allocations aren't deallocated via rust_deallocate
alloc_map: FxHashMap<AllocId, Allocation>
🔬 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?
Actual memory allocations (arbitrary bytes, may contain pointers into other allocations).
cur_frame: usize
🔬 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?
The current stack frame. Used to check accesses against locks.
tcx: TyCtxtAt<'a, 'tcx, 'tcx>
🔬 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<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
pub fn new(tcx: TyCtxtAt<'a, 'tcx, 'tcx>, data: M::MemoryData) -> Self
[src]
pub fn new(tcx: TyCtxtAt<'a, 'tcx, 'tcx>, data: M::MemoryData) -> Self
🔬 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 allocations<'x>(&'x self) -> <'x>
[src]
pub fn allocations<'x>(&'x self) -> <'x>
🔬 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 create_fn_alloc(&mut self, instance: Instance<'tcx>) -> Pointer
[src]
pub fn create_fn_alloc(&mut self, instance: Instance<'tcx>) -> 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?
pub fn allocate_bytes(&mut self, bytes: &[u8]) -> Pointer
[src]
pub fn allocate_bytes(&mut self, bytes: &[u8]) -> 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?
pub fn allocate_value(
&mut self,
alloc: Allocation,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx, AllocId>
[src]
pub fn allocate_value(
&mut self,
alloc: Allocation,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx, 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?
kind is None
for statics
pub fn allocate(
&mut self,
size: Size,
align: Align,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx, Pointer>
[src]
pub fn allocate(
&mut self,
size: Size,
align: Align,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx, 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?
kind is None
for statics
pub fn reallocate(
&mut self,
ptr: Pointer,
old_size: Size,
old_align: Align,
new_size: Size,
new_align: Align,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx, Pointer>
[src]
pub fn reallocate(
&mut self,
ptr: Pointer,
old_size: Size,
old_align: Align,
new_size: Size,
new_align: Align,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx, 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?
pub fn deallocate_local(&mut self, ptr: Pointer) -> EvalResult<'tcx>
[src]
pub fn deallocate_local(&mut self, ptr: Pointer) -> EvalResult<'tcx>
🔬 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 deallocate(
&mut self,
ptr: Pointer,
size_and_align: Option<(Size, Align)>,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx>
[src]
pub fn deallocate(
&mut self,
ptr: Pointer,
size_and_align: Option<(Size, Align)>,
kind: MemoryKind<M::MemoryKinds>
) -> EvalResult<'tcx>
🔬 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 pointer_size(&self) -> Size
[src]
pub fn pointer_size(&self) -> Size
🔬 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 endianness(&self) -> Endian
[src]
pub fn endianness(&self) -> Endian
🔬 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 check_align(
&self,
ptr: Scalar,
required_align: Align
) -> EvalResult<'tcx>
[src]
pub fn check_align(
&self,
ptr: Scalar,
required_align: Align
) -> EvalResult<'tcx>
🔬 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?
Check that the pointer is aligned AND non-NULL.
pub fn check_bounds(&self, ptr: Pointer, access: bool) -> EvalResult<'tcx>
[src]
pub fn check_bounds(&self, ptr: Pointer, access: bool) -> EvalResult<'tcx>
🔬 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?
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
Allocation accessors
fn const_eval_static(&self, def_id: DefId) -> EvalResult<'tcx, &'tcx Allocation>
[src]
fn const_eval_static(&self, def_id: DefId) -> EvalResult<'tcx, &'tcx Allocation>
🔬 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 get(&self, id: AllocId) -> EvalResult<'tcx, &Allocation>
[src]
pub fn get(&self, id: AllocId) -> EvalResult<'tcx, &Allocation>
🔬 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 get_mut(&mut self, id: AllocId) -> EvalResult<'tcx, &mut Allocation>
[src]
fn get_mut(&mut self, id: AllocId) -> EvalResult<'tcx, &mut Allocation>
🔬 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 get_fn(&self, ptr: Pointer) -> EvalResult<'tcx, Instance<'tcx>>
[src]
pub fn get_fn(&self, ptr: Pointer) -> EvalResult<'tcx, Instance<'tcx>>
🔬 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 get_alloc_kind(&self, id: AllocId) -> Option<MemoryKind<M::MemoryKinds>>
[src]
pub fn get_alloc_kind(&self, id: AllocId) -> Option<MemoryKind<M::MemoryKinds>>
🔬 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 dump_alloc(&self, id: AllocId)
[src]
pub fn dump_alloc(&self, 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?
For debugging, print an allocation and all allocations it points to, recursively.
pub fn dump_allocs(&self, allocs: Vec<AllocId>)
[src]
pub fn dump_allocs(&self, allocs: Vec<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?
For debugging, print a list of allocations and all allocations they point to, recursively.
pub fn leak_report(&self) -> usize
[src]
pub fn leak_report(&self) -> usize
🔬 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?
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
Byte accessors
fn get_bytes_unchecked(
&self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &[u8]>
[src]
fn get_bytes_unchecked(
&self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &[u8]>
🔬 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 get_bytes_unchecked_mut(
&mut self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &mut [u8]>
[src]
fn get_bytes_unchecked_mut(
&mut self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &mut [u8]>
🔬 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 get_bytes(
&self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &[u8]>
[src]
fn get_bytes(
&self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &[u8]>
🔬 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 get_bytes_mut(
&mut self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &mut [u8]>
[src]
fn get_bytes_mut(
&mut self,
ptr: Pointer,
size: Size,
align: Align
) -> EvalResult<'tcx, &mut [u8]>
🔬 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?
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
Reading and writing
fn mark_inner_allocation_initialized(
&mut self,
alloc: AllocId,
mutability: Mutability
) -> EvalResult<'tcx>
[src]
fn mark_inner_allocation_initialized(
&mut self,
alloc: AllocId,
mutability: Mutability
) -> EvalResult<'tcx>
🔬 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?
mark an allocation pointed to by a static as static and initialized
pub fn mark_static_initialized(
&mut self,
alloc_id: AllocId,
mutability: Mutability
) -> EvalResult<'tcx>
[src]
pub fn mark_static_initialized(
&mut self,
alloc_id: AllocId,
mutability: Mutability
) -> EvalResult<'tcx>
🔬 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?
mark an allocation as static and initialized, either mutable or not
pub fn copy(
&mut self,
src: Scalar,
src_align: Align,
dest: Scalar,
dest_align: Align,
size: Size,
nonoverlapping: bool
) -> EvalResult<'tcx>
[src]
pub fn copy(
&mut self,
src: Scalar,
src_align: Align,
dest: Scalar,
dest_align: Align,
size: Size,
nonoverlapping: bool
) -> EvalResult<'tcx>
🔬 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 copy_repeatedly(
&mut self,
src: Scalar,
src_align: Align,
dest: Scalar,
dest_align: Align,
size: Size,
length: u64,
nonoverlapping: bool
) -> EvalResult<'tcx>
[src]
pub fn copy_repeatedly(
&mut self,
src: Scalar,
src_align: Align,
dest: Scalar,
dest_align: Align,
size: Size,
length: u64,
nonoverlapping: bool
) -> EvalResult<'tcx>
🔬 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 read_c_str(&self, ptr: Pointer) -> EvalResult<'tcx, &[u8]>
[src]
pub fn read_c_str(&self, ptr: Pointer) -> EvalResult<'tcx, &[u8]>
🔬 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 read_bytes(&self, ptr: Scalar, size: Size) -> EvalResult<'tcx, &[u8]>
[src]
pub fn read_bytes(&self, ptr: Scalar, size: Size) -> EvalResult<'tcx, &[u8]>
🔬 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 write_bytes(&mut self, ptr: Scalar, src: &[u8]) -> EvalResult<'tcx>
[src]
pub fn write_bytes(&mut self, ptr: Scalar, src: &[u8]) -> EvalResult<'tcx>
🔬 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 write_repeat(
&mut self,
ptr: Scalar,
val: u8,
count: Size
) -> EvalResult<'tcx>
[src]
pub fn write_repeat(
&mut self,
ptr: Scalar,
val: u8,
count: Size
) -> EvalResult<'tcx>
🔬 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 read_scalar(
&self,
ptr: Pointer,
ptr_align: Align,
size: Size
) -> EvalResult<'tcx, Scalar>
[src]
pub fn read_scalar(
&self,
ptr: Pointer,
ptr_align: Align,
size: Size
) -> 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?
pub fn read_ptr_sized(
&self,
ptr: Pointer,
ptr_align: Align
) -> EvalResult<'tcx, Scalar>
[src]
pub fn read_ptr_sized(
&self,
ptr: Pointer,
ptr_align: Align
) -> 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?
pub fn write_scalar(
&mut self,
ptr: Scalar,
ptr_align: Align,
val: Scalar,
size: Size,
signed: bool
) -> EvalResult<'tcx>
[src]
pub fn write_scalar(
&mut self,
ptr: Scalar,
ptr_align: Align,
val: Scalar,
size: Size,
signed: bool
) -> EvalResult<'tcx>
🔬 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 write_ptr_sized_unsigned(
&mut self,
ptr: Pointer,
ptr_align: Align,
val: Scalar
) -> EvalResult<'tcx>
[src]
pub fn write_ptr_sized_unsigned(
&mut self,
ptr: Pointer,
ptr_align: Align,
val: Scalar
) -> EvalResult<'tcx>
🔬 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 int_align(&self, size: Size) -> Align
[src]
fn int_align(&self, size: Size) -> Align
🔬 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?
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
Relocations
fn relocations(
&self,
ptr: Pointer,
size: Size
) -> EvalResult<'tcx, &[(Size, AllocId)]>
[src]
fn relocations(
&self,
ptr: Pointer,
size: Size
) -> EvalResult<'tcx, &[(Size, 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?
fn clear_relocations(&mut self, ptr: Pointer, size: Size) -> EvalResult<'tcx>
[src]
fn clear_relocations(&mut self, ptr: Pointer, size: Size) -> EvalResult<'tcx>
🔬 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 check_relocation_edges(&self, ptr: Pointer, size: Size) -> EvalResult<'tcx>
[src]
fn check_relocation_edges(&self, ptr: Pointer, size: Size) -> EvalResult<'tcx>
🔬 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?
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M>
Undefined bytes
fn copy_undef_mask(
&mut self,
src: Pointer,
dest: Pointer,
size: Size,
repeat: u64
) -> EvalResult<'tcx>
[src]
fn copy_undef_mask(
&mut self,
src: Pointer,
dest: Pointer,
size: Size,
repeat: u64
) -> EvalResult<'tcx>
🔬 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 check_defined(&self, ptr: Pointer, size: Size) -> EvalResult<'tcx>
[src]
fn check_defined(&self, ptr: Pointer, size: Size) -> EvalResult<'tcx>
🔬 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 mark_definedness(
&mut self,
ptr: Scalar,
size: Size,
new_state: bool
) -> EvalResult<'tcx>
[src]
pub fn mark_definedness(
&mut self,
ptr: Scalar,
size: Size,
new_state: bool
) -> EvalResult<'tcx>
🔬 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<'a, 'mir, 'tcx: 'a + 'mir, M: Clone + Machine<'mir, 'tcx>> Clone for Memory<'a, 'mir, 'tcx, M> where
M::MemoryData: Clone,
M::MemoryKinds: Clone,
[src]
impl<'a, 'mir, 'tcx: 'a + 'mir, M: Clone + Machine<'mir, 'tcx>> Clone for Memory<'a, 'mir, 'tcx, M> where
M::MemoryData: Clone,
M::MemoryKinds: Clone,
fn clone(&self) -> Memory<'a, 'mir, 'tcx, M>
[src]
fn clone(&self) -> Memory<'a, 'mir, 'tcx, M>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a, 'mir, 'tcx, M> Eq for Memory<'a, 'mir, 'tcx, M> where
M: Machine<'mir, 'tcx>,
'tcx: 'a + 'mir,
[src]
impl<'a, 'mir, 'tcx, M> Eq for Memory<'a, 'mir, 'tcx, M> where
M: Machine<'mir, 'tcx>,
'tcx: 'a + 'mir,
fn assert_receiver_is_total_eq(&self)
1.0.0[src]
fn assert_receiver_is_total_eq(&self)
impl<'a, 'mir, 'tcx, M> PartialEq for Memory<'a, 'mir, 'tcx, M> where
M: Machine<'mir, 'tcx>,
'tcx: 'a + 'mir,
[src]
impl<'a, 'mir, 'tcx, M> PartialEq for Memory<'a, 'mir, 'tcx, M> where
M: Machine<'mir, 'tcx>,
'tcx: 'a + 'mir,
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a, 'mir, 'tcx, M> Hash for Memory<'a, 'mir, 'tcx, M> where
M: Machine<'mir, 'tcx>,
'tcx: 'a + 'mir,
[src]
impl<'a, 'mir, 'tcx, M> Hash for Memory<'a, 'mir, 'tcx, M> where
M: Machine<'mir, 'tcx>,
'tcx: 'a + 'mir,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasMemory<'a, 'mir, 'tcx, M> for Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasMemory<'a, 'mir, 'tcx, M> for Memory<'a, 'mir, 'tcx, M>
fn memory_mut(&mut self) -> &mut Memory<'a, 'mir, 'tcx, M>
[src]
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>
[src]
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?
fn into_ptr(&self, value: Value) -> EvalResult<'tcx, Scalar>
[src]
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. Read more
fn into_ptr_vtable_pair(
&self,
value: Value
) -> EvalResult<'tcx, (Scalar, Pointer)>
[src]
fn into_ptr_vtable_pair(
&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)>
[src]
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?
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasDataLayout for &'a Memory<'a, 'mir, 'tcx, M>
[src]
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> HasDataLayout for &'a Memory<'a, 'mir, 'tcx, M>
fn data_layout(&self) -> &TargetDataLayout
[src]
fn data_layout(&self) -> &TargetDataLayout
🔬 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?