Struct parity_wasm::elements::NameSection [−][src]
pub struct NameSection { /* fields omitted */ }Debug name information.
Implementations
impl NameSection[src]
impl NameSection[src]pub fn new(
module: Option<ModuleNameSubsection>,
functions: Option<FunctionNameSubsection>,
locals: Option<LocalNameSubsection>
) -> Self[src]
module: Option<ModuleNameSubsection>,
functions: Option<FunctionNameSubsection>,
locals: Option<LocalNameSubsection>
) -> Self
Creates a new name section.
pub fn module(&self) -> Option<&ModuleNameSubsection>[src]
Module name subsection of this section.
pub fn module_mut(&mut self) -> &mut Option<ModuleNameSubsection>[src]
Module name subsection of this section (mutable).
pub fn functions(&self) -> Option<&FunctionNameSubsection>[src]
Functions name subsection of this section.
pub fn functions_mut(&mut self) -> &mut Option<FunctionNameSubsection>[src]
Functions name subsection of this section (mutable).
pub fn locals(&self) -> Option<&LocalNameSubsection>[src]
Local name subsection of this section.
pub fn locals_mut(&mut self) -> &mut Option<LocalNameSubsection>[src]
Local name subsection of this section (mutable).
impl NameSection[src]
impl NameSection[src]Trait Implementations
impl Clone for NameSection[src]
impl Clone for NameSection[src]fn clone(&self) -> NameSection[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<NameSection> for NameSection[src]
impl PartialEq<NameSection> for NameSection[src]fn eq(&self, other: &NameSection) -> bool[src]
fn ne(&self, other: &NameSection) -> bool[src]
impl Serialize for NameSection[src]
impl Serialize for NameSection[src]