Enum parity_wasm::elements::NameSection
source · pub enum NameSection {
Module(ModuleNameSection),
Function(FunctionNameSection),
Local(LocalNameSection),
Unparsed {
name_type: u8,
name_payload: Vec<u8>,
},
}
Expand description
Debug name information.
Variants
Module(ModuleNameSection)
Module name section.
Function(FunctionNameSection)
Function name section.
Local(LocalNameSection)
Local name section.
Unparsed
Fields
name_type: u8
The numeric identifier for this name section type.
Name section is unparsed.
Implementations
sourceimpl NameSection
impl NameSection
sourcepub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<NameSection, Error>
pub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<NameSection, Error>
Deserialize a name section.
Trait Implementations
sourceimpl Clone for NameSection
impl Clone for NameSection
sourcefn clone(&self) -> NameSection
fn clone(&self) -> NameSection
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 NameSection
impl Debug for NameSection
sourceimpl PartialEq<NameSection> for NameSection
impl PartialEq<NameSection> for NameSection
sourcefn eq(&self, other: &NameSection) -> bool
fn eq(&self, other: &NameSection) -> bool
sourceimpl Serialize for NameSection
impl Serialize for NameSection
impl StructuralPartialEq for NameSection
Auto Trait Implementations
impl RefUnwindSafe for NameSection
impl Send for NameSection
impl Sync for NameSection
impl Unpin for NameSection
impl UnwindSafe for NameSection
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