Struct parity_wasm::elements::MemorySection
source · pub struct MemorySection(_);
Expand description
Section with table definition (currently only one entry is allowed).
Implementations§
source§impl MemorySection
impl MemorySection
sourcepub fn entries(&self) -> &[MemoryType]
pub fn entries(&self) -> &[MemoryType]
List of all memory entries in the section
sourcepub fn with_entries(entries: Vec<MemoryType>) -> Self
pub fn with_entries(entries: Vec<MemoryType>) -> Self
New memory section with memory types.
sourcepub fn entries_mut(&mut self) -> &mut Vec<MemoryType>
pub fn entries_mut(&mut self) -> &mut Vec<MemoryType>
Mutable list of all memory entries in the section.
Trait Implementations§
source§impl Clone for MemorySection
impl Clone for MemorySection
source§fn clone(&self) -> MemorySection
fn clone(&self) -> MemorySection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemorySection
impl Debug for MemorySection
source§impl Default for MemorySection
impl Default for MemorySection
source§fn default() -> MemorySection
fn default() -> MemorySection
Returns the “default value” for a type. Read more