Struct parity_wasm::elements::LocalNameSection
source · pub struct LocalNameSection { /* private fields */ }
Expand description
The names of the local variables in this module’s functions.
Implementations
sourceimpl LocalNameSection
impl LocalNameSection
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<LocalNameSection, Error>
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
sourceimpl Clone for LocalNameSection
impl Clone for LocalNameSection
sourcefn clone(&self) -> LocalNameSection
fn clone(&self) -> LocalNameSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LocalNameSection
impl Debug for LocalNameSection
sourceimpl Default for LocalNameSection
impl Default for LocalNameSection
sourcefn default() -> LocalNameSection
fn default() -> LocalNameSection
Returns the “default value” for a type. Read more
sourceimpl PartialEq<LocalNameSection> for LocalNameSection
impl PartialEq<LocalNameSection> for LocalNameSection
sourcefn eq(&self, other: &LocalNameSection) -> bool
fn eq(&self, other: &LocalNameSection) -> bool
sourceimpl Serialize for LocalNameSection
impl Serialize for LocalNameSection
impl StructuralPartialEq for LocalNameSection
Auto Trait Implementations
impl RefUnwindSafe for LocalNameSection
impl Send for LocalNameSection
impl Sync for LocalNameSection
impl Unpin for LocalNameSection
impl UnwindSafe for LocalNameSection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more