Struct parity_wasm::elements::ResizableLimits
[−]
[src]
pub struct ResizableLimits { /* fields omitted */ }
Memory limits
Methods
impl ResizableLimits
[src]
pub fn new(min: u32, max: Option<u32>) -> Self
[src]
New memory limits definition
pub fn initial(&self) -> u32
[src]
Initial size
pub fn maximum(&self) -> Option<u32>
[src]
Maximum size
Trait Implementations
impl Debug for ResizableLimits
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for ResizableLimits
[src]
impl Clone for ResizableLimits
[src]
fn clone(&self) -> ResizableLimits
[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 PartialEq for ResizableLimits
[src]
fn eq(&self, __arg_0: &ResizableLimits) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ResizableLimits) -> bool
[src]
This method tests for !=
.
impl Deserialize for ResizableLimits
[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