Struct parity_wasm::elements::Module [] [src]

pub struct Module { /* fields omitted */ }

WebAssembly module

Methods

impl Module
[src]

[src]

New module with sections

[src]

Destructure the module, yielding sections

[src]

Version of module.

[src]

Sections list. Each known section is optional and may appear at most once.

[src]

Sections list (mutable) Each known section is optional and may appear at most once.

[src]

Code section reference, if any.

[src]

Code section mutable reference, if any.

[src]

Types section reference, if any.

[src]

Types section mutable reference, if any.

[src]

Imports section reference, if any.

[src]

Imports section mutable reference, if any.

[src]

Globals section reference, if any.

[src]

Globals section mutable reference, if any.

[src]

Exports section reference, if any.

[src]

Exports section mutable reference, if any.

[src]

Table section reference, if any.

[src]

Table section mutable reference, if any.

[src]

Data section reference, if any.

[src]

Data section mutable reference, if any.

[src]

Element section reference, if any.

[src]

Element section mutable reference, if any.

[src]

Memory section reference, if any.

[src]

Memory section mutable reference, if any.

[src]

Functions signatures section reference, if any.

[src]

Functions signatures section mutable reference, if any.

[src]

Start section, if any.

[src]

Functions signatures section reference, if any. NOTE: name section is not parsed by default so names_section could return None even if name section exists. Call parse_names to parse name section

[src]

Functions signatures section mutable reference, if any. NOTE: name section is not parsed by default so names_section could return None even if name section exists. Call parse_names to parse name section

[src]

Try to parse name section in place Corresponding custom section with proper header will convert to name sections If some of them will fail to be decoded, Err variant is returned with the list of (index, Error) tuples of failed sections.

[src]

Try to parse reloc section in place Corresponding custom section with proper header will convert to reloc sections If some of them will fail to be decoded, Err variant is returned with the list of (index, Error) tuples of failed sections.

[src]

Count imports by provided type

[src]

Query functions space

[src]

Query globals space

[src]

Query table space

[src]

Query memory space

Trait Implementations

impl Debug for Module
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Module
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Module
[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 Default for Module
[src]

[src]

Returns the "default value" for a type. Read more

impl Deserialize for Module
[src]

Serialization error produced by deserialization routine.

[src]

Deserialize type from serial i/o

impl Serialize for Module
[src]

Serialization error produced by serialization routine.

[src]

Serialize type to serial i/o

Auto Trait Implementations

impl Send for Module

impl Sync for Module