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
source§impl PartialEq<LocalNameSubsection> for LocalNameSubsection
impl PartialEq<LocalNameSubsection> for LocalNameSubsection
source§fn eq(&self, other: &LocalNameSubsection) -> bool
fn eq(&self, other: &LocalNameSubsection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocalNameSubsection
impl Serialize for LocalNameSubsection
impl StructuralPartialEq for LocalNameSubsection
Auto Trait Implementations§
impl RefUnwindSafe for LocalNameSubsection
impl Send for LocalNameSubsection
impl Sync for LocalNameSubsection
impl Unpin for LocalNameSubsection
impl UnwindSafe for LocalNameSubsection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more