#[repr(C)]pub struct wasmMemory {
pub data: *mut U8,
pub size: U32,
pub pages: U32,
pub maxPages: U32,
pub shared: bool,
pub futex: *mut c_void,
pub futexFree: Option<unsafe extern "C" fn(futex: *mut c_void)>,
}Fields§
§data: *mut U8§size: U32§pages: U32§maxPages: U32§futex: *mut c_void§futexFree: Option<unsafe extern "C" fn(futex: *mut c_void)>Implementations§
Source§impl wasmMemory
impl wasmMemory
Sourcepub fn builder() -> wasmMemoryBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> wasmMemoryBuilder<((), (), (), (), (), (), ())>
Create a builder for building wasmMemory.
On the builder, call .data(...), .size(...), .pages(...), .maxPages(...), .shared(...), .futex(...), .futexFree(...) to set the values of the fields.
Finally, call .build() to create the instance of 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 moreSource§impl ConstDefault for wasmMemorywhere
*mut U8: ConstDefault,
U32: ConstDefault,
bool: ConstDefault,
*mut c_void: ConstDefault,
Option<unsafe extern "C" fn(futex: *mut c_void)>: ConstDefault,
impl ConstDefault for wasmMemorywhere
*mut U8: ConstDefault,
U32: ConstDefault,
bool: ConstDefault,
*mut c_void: ConstDefault,
Option<unsafe extern "C" fn(futex: *mut c_void)>: ConstDefault,
Source§impl Debug for wasmMemory
impl Debug for wasmMemory
Source§impl Hash for wasmMemory
impl Hash for wasmMemory
impl Copy for wasmMemory
Auto 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