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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LocalNameSection) -> bool
fn ne(&self, other: &LocalNameSection) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more