Struct parity_wasm::elements::Local [−][src]
pub struct Local { /* fields omitted */ }Local definition inside the function body.
Methods
impl Local[src]
impl Localpub fn new(count: u32, value_type: ValueType) -> Self[src]
pub fn new(count: u32, value_type: ValueType) -> SelfNew local with count and value_type.
pub fn count(&self) -> u32[src]
pub fn count(&self) -> u32Number of locals with the shared type.
pub fn value_type(&self) -> ValueType[src]
pub fn value_type(&self) -> ValueTypeType of the locals.
Trait Implementations
impl Debug for Local[src]
impl Debug for Localfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Local[src]
impl Copy for Localimpl Clone for Local[src]
impl Clone for Localfn clone(&self) -> Local[src]
fn clone(&self) -> LocalReturns 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 Local[src]
impl PartialEq for Localfn eq(&self, other: &Local) -> bool[src]
fn eq(&self, other: &Local) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Local) -> bool[src]
fn ne(&self, other: &Local) -> boolThis method tests for !=.
impl Deserialize for Local[src]
impl Deserialize for Localtype 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 Local[src]
impl Serialize for Local