Enum parity_wasm::elements::NameSection
[−]
[src]
pub enum NameSection {
Module(ModuleNameSection),
Function(FunctionNameSection),
Local(LocalNameSection),
Unparsed {
name_type: u8,
name_payload: Vec<u8>,
},
}Debug name information.
Variants
Module(ModuleNameSection)Module name section.
Function(FunctionNameSection)Function name section.
Local(LocalNameSection)Local name section.
UnparsedName section is unparsed.
Fields of Unparsed
name_type: u8 | The numeric identifier for this name section type. |
name_payload: Vec<u8> | The contents of this name section, unparsed. |
Methods
impl NameSection[src]
fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<NameSection, Error>[src]
module: &Module,
rdr: &mut R
) -> Result<NameSection, Error>
Deserialize a name section.
Trait Implementations
impl Clone for NameSection[src]
fn clone(&self) -> NameSection[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for NameSection[src]
impl PartialEq for NameSection[src]
fn eq(&self, __arg_0: &NameSection) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NameSection) -> bool[src]
This method tests for !=.