Struct parity_wasm::elements::LocalNameSection
[−]
[src]
pub struct LocalNameSection { /* fields omitted */ }
The names of the local variables in this module's functions.
Methods
impl LocalNameSection
[src]
pub fn local_names(&self) -> &IndexMap<NameMap>
[src]
A map from function indices to a map from variables indices to names.
pub fn local_names_mut(&mut self) -> &mut IndexMap<NameMap>
[src]
A map from function indices to a map from variables indices to names (mutable).
pub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<LocalNameSection, Error>
[src]
module: &Module,
rdr: &mut R
) -> Result<LocalNameSection, Error>
Deserialize names, making sure that all names correspond to local variables.
Trait Implementations
impl Clone for LocalNameSection
[src]
fn clone(&self) -> LocalNameSection
[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 Debug for LocalNameSection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for LocalNameSection
[src]
fn default() -> LocalNameSection
[src]
Returns the "default value" for a type. Read more
impl PartialEq for LocalNameSection
[src]
fn eq(&self, __arg_0: &LocalNameSection) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LocalNameSection) -> bool
[src]
This method tests for !=
.