Struct parity_wasm::elements::Local [−][src]
pub struct Local { /* fields omitted */ }
Local definition inside the function body.
Methods
impl Local
[src]
impl Local
pub fn new(count: u32, value_type: ValueType) -> Self
[src]
pub fn new(count: u32, value_type: ValueType) -> Self
New local with count
and value_type
.
pub fn count(&self) -> u32
[src]
pub fn count(&self) -> u32
Number of locals with the shared type.
pub fn value_type(&self) -> ValueType
[src]
pub fn value_type(&self) -> ValueType
Type of the locals.
Trait Implementations
impl Debug for Local
[src]
impl Debug for Local
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 Local
[src]
impl Copy for Local
impl Clone for Local
[src]
impl Clone for Local
fn clone(&self) -> Local
[src]
fn clone(&self) -> Local
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 Local
[src]
impl PartialEq for Local
fn eq(&self, other: &Local) -> bool
[src]
fn eq(&self, other: &Local) -> bool
This 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) -> bool
This method tests for !=
.
impl Deserialize for Local
[src]
impl Deserialize for Local
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 Local
[src]
impl Serialize for Local