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 name section.

Function name section.

Local name section.

Name section is unparsed.

Fields of Unparsed

The numeric identifier for this name section type.

The contents of this name section, unparsed.

Methods

impl NameSection
[src]

[src]

Deserialize a name section.

Trait Implementations

impl Clone for NameSection
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NameSection
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for NameSection
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Serialize for NameSection
[src]

Serialization error produced by serialization routine.

[src]

Serialize type to serial i/o

Auto Trait Implementations

impl Send for NameSection

impl Sync for NameSection