Struct parity_wasm::elements::MemorySection
[−]
[src]
pub struct MemorySection(_);
Section with table definition (currently only one entry is allowed).
Methods
impl MemorySection
[src]
pub fn entries(&self) -> &[MemoryType]
[src]
List of all memory entries in the section
pub fn with_entries(entries: Vec<MemoryType>) -> Self
[src]
New memory section with memory types
pub fn entries_mut(&mut self) -> &mut Vec<MemoryType>
[src]
Mutable list of all memory entries in the section
Trait Implementations
impl Default for MemorySection
[src]
fn default() -> MemorySection
[src]
Returns the "default value" for a type. Read more
impl Debug for MemorySection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MemorySection
[src]
fn clone(&self) -> MemorySection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deserialize for MemorySection
[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
[src]
Deserialize type from serial i/o