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