Enum cranelift_wasm::HeapStyle
source · pub enum HeapStyle {
Dynamic {
bound_gv: GlobalValue,
},
Static {
bound: u64,
},
}
Expand description
Style of heap including style-specific information.
Variants§
Dynamic
A dynamic heap can be relocated to a different base address when it is grown.
Fields
§
bound_gv: GlobalValue
Global value providing the current bound of the heap in bytes.
Static
A static heap has a fixed base address and a number of not-yet-allocated pages before the offset-guard pages.
Trait Implementations§
source§impl PartialEq for HeapStyle
impl PartialEq for HeapStyle
impl StructuralPartialEq for HeapStyle
Auto Trait Implementations§
impl Freeze for HeapStyle
impl RefUnwindSafe for HeapStyle
impl Send for HeapStyle
impl Sync for HeapStyle
impl Unpin for HeapStyle
impl UnwindSafe for HeapStyle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more