pub struct WasmMemory {
pub index: u32,
pub initial_pages: u32,
pub max_pages: Option<u32>,
pub shared: bool,
}Expand description
WASM linear memory specification
Fields§
§index: u32Memory index
initial_pages: u32Initial size in pages (64KB each)
max_pages: Option<u32>Maximum size in pages (if specified)
Whether memory is shared (requires threads proposal)
Implementations§
Source§impl WasmMemory
impl WasmMemory
Trait Implementations§
Source§impl Clone for WasmMemory
impl Clone for WasmMemory
Source§fn clone(&self) -> WasmMemory
fn clone(&self) -> WasmMemory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WasmMemory
impl RefUnwindSafe for WasmMemory
impl Send for WasmMemory
impl Sync for WasmMemory
impl Unpin for WasmMemory
impl UnsafeUnpin for WasmMemory
impl UnwindSafe for WasmMemory
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