pub struct HeapImage {
pub minimum: u32,
pub maximum: Option<u32>,
pub memory64: bool,
pub page_size_log2: Option<u32>,
pub segments: Vec<(u32, Vec<u8>)>,
}Expand description
A memory heap image.
Fields§
§minimum: u32The minimum size (in pages) of this memory.
maximum: Option<u32>The maximum size (in pages) of this memory.
memory64: boolWhether this memory should be indexed with i64 (rather than i32).
page_size_log2: Option<u32>The log2 of the page size for this memory.
segments: Vec<(u32, Vec<u8>)>Data segments for this memory.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for HeapImage
impl<'a> Arbitrary<'a> for HeapImage
Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreAuto Trait Implementations§
impl Freeze for HeapImage
impl RefUnwindSafe for HeapImage
impl Send for HeapImage
impl Sync for HeapImage
impl Unpin for HeapImage
impl UnsafeUnpin for HeapImage
impl UnwindSafe for HeapImage
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more