Struct walrus::ModuleData
source · pub struct ModuleData { /* private fields */ }
Expand description
All passive data sections of a wasm module, used to initialize memories via various instructions.
Implementations§
source§impl ModuleData
impl ModuleData
sourcepub fn delete(&mut self, id: DataId)
pub fn delete(&mut self, id: DataId)
Delete a passive data segment from this module.
It is up to you to ensure that all references to the deleted segment are
removed, eg memory.init
and data.drop
expressions.
Trait Implementations§
source§impl Debug for ModuleData
impl Debug for ModuleData
source§impl Default for ModuleData
impl Default for ModuleData
source§fn default() -> ModuleData
fn default() -> ModuleData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ModuleData
impl Send for ModuleData
impl Sync for ModuleData
impl Unpin for ModuleData
impl UnwindSafe for ModuleData
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