Struct parity_wasm::elements::LocalNameSubsection
source · pub struct LocalNameSubsection { /* private fields */ }
Expand description
The names of the local variables in this module’s functions.
Implementations§
source§impl LocalNameSubsection
impl LocalNameSubsection
sourcepub fn local_names(&self) -> &IndexMap<NameMap>
pub fn local_names(&self) -> &IndexMap<NameMap>
A map from function indices to a map from variables indices to names.
sourcepub fn local_names_mut(&mut self) -> &mut IndexMap<NameMap>
pub fn local_names_mut(&mut self) -> &mut IndexMap<NameMap>
A map from function indices to a map from variables indices to names (mutable).
sourcepub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<LocalNameSubsection, Error>
pub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<LocalNameSubsection, Error>
Deserialize names, making sure that all names correspond to local variables.
Trait Implementations§
source§impl Clone for LocalNameSubsection
impl Clone for LocalNameSubsection
source§fn clone(&self) -> LocalNameSubsection
fn clone(&self) -> LocalNameSubsection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LocalNameSubsection
impl Debug for LocalNameSubsection
source§impl Default for LocalNameSubsection
impl Default for LocalNameSubsection
source§fn default() -> LocalNameSubsection
fn default() -> LocalNameSubsection
Returns the “default value” for a type. Read more