Struct rustc::mir::interpret::Allocation
[−]
[src]
pub struct Allocation { pub bytes: Vec<u8>, pub relocations: BTreeMap<u64, AllocId>, pub undef_mask: UndefMask, pub align: 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
bytes: Vec<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?
The actual bytes of the allocation. Note that the bytes of a pointer represent the offset of the pointer
relocations: BTreeMap<u64, 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?
Maps from byte addresses to allocations. Only the first byte of a pointer is inserted into the map.
undef_mask: UndefMask
🔬 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?
Denotes undefined memory. Reading from undefined memory is forbidden in miri
align: 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?
The alignment of the allocation to detect unaligned reads.
Methods
impl Allocation
[src]
pub fn from_bytes(slice: &[u8]) -> 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 Debug for Allocation
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Allocation
[src]
impl PartialEq for Allocation
[src]
fn eq(&self, __arg_0: &Allocation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Allocation) -> bool
[src]
This method tests for !=
.