Struct parity_wasm_cp::elements::MemoryType [−][src]
pub struct MemoryType(_);
Memory entry.
Methods
impl MemoryType
[src]
impl MemoryType
pub fn new(min: u32, max: Option<u32>) -> Self
[src]
pub fn new(min: u32, max: Option<u32>) -> Self
New memory definition
pub fn limits(&self) -> &ResizableLimits
[src]
pub fn limits(&self) -> &ResizableLimits
Limits of the memory entry.
Trait Implementations
impl Debug for MemoryType
[src]
impl Debug for MemoryType
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 Copy for MemoryType
[src]
impl Copy for MemoryType
impl Clone for MemoryType
[src]
impl Clone for MemoryType
fn clone(&self) -> MemoryType
[src]
fn clone(&self) -> MemoryType
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 MemoryType
[src]
impl PartialEq for MemoryType
fn eq(&self, other: &MemoryType) -> bool
[src]
fn eq(&self, other: &MemoryType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MemoryType) -> bool
[src]
fn ne(&self, other: &MemoryType) -> bool
This method tests for !=
.
impl Deserialize for MemoryType
[src]
impl Deserialize for MemoryType
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 MemoryType
[src]
impl Serialize for MemoryType
Auto Trait Implementations
impl Send for MemoryType
impl Send for MemoryType
impl Sync for MemoryType
impl Sync for MemoryType