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
sourceimpl 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
sourceimpl Clone for LocalNameSubsection
impl Clone for LocalNameSubsection
sourcefn clone(&self) -> LocalNameSubsection
fn clone(&self) -> LocalNameSubsection
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 more
sourceimpl Debug for LocalNameSubsection
impl Debug for LocalNameSubsection
sourceimpl Default for LocalNameSubsection
impl Default for LocalNameSubsection
sourcefn default() -> LocalNameSubsection
fn default() -> LocalNameSubsection
Returns the “default value” for a type. Read more
sourceimpl PartialEq<LocalNameSubsection> for LocalNameSubsection
impl PartialEq<LocalNameSubsection> for LocalNameSubsection
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &LocalNameSubsection) -> bool
fn ne(&self, other: &LocalNameSubsection) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more