Struct cranelift_reader::HeapCommand
source · [−]pub struct HeapCommand {
pub heap_type: HeapType,
pub size: Uimm64,
pub ptr_offset: Option<Uimm64>,
pub bound_offset: Option<Uimm64>,
}
Expand description
A heap command appearing in a test file.
For parsing, see Parser::parse_heap_command
Fields
heap_type: HeapType
Indicates the requested heap type
size: Uimm64
Size of the heap.
For dynamic heaps this is the starting size. For static heaps, this is the total size.
ptr_offset: Option<Uimm64>
Offset of the heap pointer from the vmctx base
This is done for verification purposes only
bound_offset: Option<Uimm64>
Offset of the bound pointer from the vmctx base
This is done for verification purposes only
Trait Implementations
sourceimpl Clone for HeapCommand
impl Clone for HeapCommand
sourcefn clone(&self) -> HeapCommand
fn clone(&self) -> HeapCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HeapCommand
impl Debug for HeapCommand
sourceimpl Display for HeapCommand
impl Display for HeapCommand
sourceimpl PartialEq<HeapCommand> for HeapCommand
impl PartialEq<HeapCommand> for HeapCommand
sourcefn eq(&self, other: &HeapCommand) -> bool
fn eq(&self, other: &HeapCommand) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HeapCommand) -> bool
fn ne(&self, other: &HeapCommand) -> bool
This method tests for !=
.
impl StructuralPartialEq for HeapCommand
Auto Trait Implementations
impl RefUnwindSafe for HeapCommand
impl Send for HeapCommand
impl Sync for HeapCommand
impl Unpin for HeapCommand
impl UnwindSafe for HeapCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more