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]
impl LocalNameSectionpub fn local_names(&self) -> &IndexMap<NameMap>[src]
pub fn local_names(&self) -> &IndexMap<NameMap>A map from function indices to a map from variables indices to names.
pub fn local_names_mut(&mut self) -> &mut IndexMap<NameMap>[src]
pub fn local_names_mut(&mut self) -> &mut IndexMap<NameMap>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]
pub fn deserialize<R: Read>(
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]
impl Clone for LocalNameSectionfn clone(&self) -> LocalNameSection[src]
fn clone(&self) -> LocalNameSectionReturns 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 Debug for LocalNameSection[src]
impl Debug for LocalNameSectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for LocalNameSection[src]
impl Default for LocalNameSectionfn default() -> LocalNameSection[src]
fn default() -> LocalNameSectionReturns the "default value" for a type. Read more
impl PartialEq for LocalNameSection[src]
impl PartialEq for LocalNameSectionfn eq(&self, other: &LocalNameSection) -> bool[src]
fn eq(&self, other: &LocalNameSection) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LocalNameSection) -> bool[src]
fn ne(&self, other: &LocalNameSection) -> boolThis method tests for !=.
impl Serialize for LocalNameSection[src]
impl Serialize for LocalNameSectionAuto Trait Implementations
impl Send for LocalNameSection
impl Send for LocalNameSectionimpl Sync for LocalNameSection
impl Sync for LocalNameSection