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

pub struct Module { /* fields omitted */ }

WebAssembly module

Methods

impl Module
[src]

New module with sections

Destructure the module, yielding sections

Version of module.

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

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

Code section reference, if any.

Code section mutable reference, if any.

Types section reference, if any.

Types section mutable reference, if any.

Imports section reference, if any.

Imports section mutable reference, if any.

Globals section reference, if any.

Globals section mutable reference, if any.

Exports section reference, if any.

Exports section mutable reference, if any.

Table section reference, if any.

Table section mutable reference, if any.

Data section reference, if any.

Data section mutable reference, if any.

Element section reference, if any.

Element section mutable reference, if any.

Memory section reference, if any.

Memory section mutable reference, if any.

Functions signatures section reference, if any.

Functions signatures section mutable reference, if any.

Start section, if any.

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

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

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.

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.

Count imports by provided type

Query functions space

Query globals space

Query table space

Query memory space

Trait Implementations

impl Deserialize for Module
[src]

Serialization error produced by deserialization routine.

Deserialize type from serial i/o

impl Serialize for Module
[src]

Serialization error produced by serialization routine.

Serialize type to serial i/o

impl Clone for Module
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Module
[src]

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

impl PartialEq<Module> for Module
[src]

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

This method tests for !=.

impl Debug for Module
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Module

impl Sync for Module

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.