pub struct Memory {
pub shared: bool,
pub initial: u32,
pub maximum: Option<u32>,
pub import: Option<ImportId>,
pub data_segments: HashSet<Id<Data>, BuildIdHasher>,
pub name: Option<String>,
/* private fields */
}
Expand description
A memory in the wasm.
Fields§
Is this memory shared?
initial: u32
The initial page size for this memory.
maximum: Option<u32>
The maximum page size for this memory.
import: Option<ImportId>
Whether or not this memory is imported, and if so from where.
data_segments: HashSet<Id<Data>, BuildIdHasher>
Active data segments that will be used to initialize this memory.
name: Option<String>
The name of this memory, used for debugging purposes in the name
custom section.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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