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