Struct wasm_encoder::CoreDumpInstancesSection
source · pub struct CoreDumpInstancesSection { /* private fields */ }
Expand description
The “coreinstances” section for the core dump
Implementations§
source§impl CoreDumpInstancesSection
impl CoreDumpInstancesSection
sourcepub fn as_custom(&self) -> CustomSection<'_>
pub fn as_custom(&self) -> CustomSection<'_>
View the encoded section as a CustomSection.
sourcepub fn instance<M, G>(
&mut self,
module_index: u32,
memories: M,
globals: G,
) -> &mut Selfwhere
M: IntoIterator<Item = u32>,
<M as IntoIterator>::IntoIter: ExactSizeIterator,
G: IntoIterator<Item = u32>,
<G as IntoIterator>::IntoIter: ExactSizeIterator,
pub fn instance<M, G>(
&mut self,
module_index: u32,
memories: M,
globals: G,
) -> &mut Selfwhere
M: IntoIterator<Item = u32>,
<M as IntoIterator>::IntoIter: ExactSizeIterator,
G: IntoIterator<Item = u32>,
<G as IntoIterator>::IntoIter: ExactSizeIterator,
Encode an instance into the section’s bytes.
Trait Implementations§
source§impl Debug for CoreDumpInstancesSection
impl Debug for CoreDumpInstancesSection
source§impl Encode for CoreDumpInstancesSection
impl Encode for CoreDumpInstancesSection
Auto Trait Implementations§
impl Freeze for CoreDumpInstancesSection
impl RefUnwindSafe for CoreDumpInstancesSection
impl Send for CoreDumpInstancesSection
impl Sync for CoreDumpInstancesSection
impl Unpin for CoreDumpInstancesSection
impl UnwindSafe for CoreDumpInstancesSection
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