Struct parity_wasm::elements::MemorySection [−][src]
pub struct MemorySection(_);
Section with table definition (currently only one entry is allowed).
Methods
impl MemorySection
[src]
impl MemorySection
pub 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>) -> Self
New 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 MemorySection
fn default() -> MemorySection
[src]
fn default() -> MemorySection
Returns the "default value" for a type. Read more
impl Debug for MemorySection
[src]
impl Debug for MemorySection
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MemorySection
[src]
impl Clone for MemorySection
fn clone(&self) -> MemorySection
[src]
fn clone(&self) -> MemorySection
Returns 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 MemorySection
fn eq(&self, other: &MemorySection) -> bool
[src]
fn eq(&self, other: &MemorySection) -> bool
This 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) -> bool
This method tests for !=
.
impl Deserialize for MemorySection
[src]
impl Deserialize for MemorySection
type 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 MemorySection
Auto Trait Implementations
impl Send for MemorySection
impl Send for MemorySection
impl Sync for MemorySection
impl Sync for MemorySection