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]
impl NameSectionpub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<NameSection, Error>[src]
pub fn deserialize<R: Read>(
module: &Module,
rdr: &mut R
) -> Result<NameSection, Error>Deserialize a name section.
Trait Implementations
impl Clone for NameSection[src]
impl Clone for NameSectionfn clone(&self) -> NameSection[src]
fn clone(&self) -> NameSectionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for NameSection[src]
impl Debug for NameSectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for NameSection[src]
impl PartialEq for NameSectionfn eq(&self, other: &NameSection) -> bool[src]
fn eq(&self, other: &NameSection) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NameSection) -> bool[src]
fn ne(&self, other: &NameSection) -> boolThis method tests for !=.
impl Serialize for NameSection[src]
impl Serialize for NameSectionAuto Trait Implementations
impl Send for NameSection
impl Send for NameSectionimpl Sync for NameSection
impl Sync for NameSection