Struct parity_wasm::elements::MemorySection [−][src]
pub struct MemorySection(_);
Section with table definition (currently only one entry is allowed).
Methods
impl MemorySection[src]
impl MemorySectionpub fn entries(&self) -> &[MemoryType][src]
pub fn entries(&self) -> &[MemoryType]List of all memory entries in the section
pub fn with_entries(entries: Vec<MemoryType>) -> Self[src]
pub fn with_entries(entries: Vec<MemoryType>) -> SelfNew memory section with memory types
pub fn entries_mut(&mut self) -> &mut Vec<MemoryType>[src]
pub fn entries_mut(&mut self) -> &mut Vec<MemoryType>Mutable list of all memory entries in the section
Trait Implementations
impl Default for MemorySection[src]
impl Default for MemorySectionfn default() -> MemorySection[src]
fn default() -> MemorySectionReturns the "default value" for a type. Read more
impl Debug for MemorySection[src]
impl Debug for MemorySectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for MemorySection[src]
impl Clone for MemorySectionfn clone(&self) -> MemorySection[src]
fn clone(&self) -> MemorySectionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for MemorySection[src]
impl PartialEq for MemorySectionfn eq(&self, other: &MemorySection) -> bool[src]
fn eq(&self, other: &MemorySection) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MemorySection) -> bool[src]
fn ne(&self, other: &MemorySection) -> boolThis method tests for !=.
impl Deserialize for MemorySection[src]
impl Deserialize for MemorySectiontype Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>Deserialize type from serial i/o
impl Serialize for MemorySection[src]
impl Serialize for MemorySectionAuto Trait Implementations
impl Send for MemorySection
impl Send for MemorySectionimpl Sync for MemorySection
impl Sync for MemorySection