Struct wast::Wat

source · []
pub struct Wat<'a> {
    pub module: Module<'a>,
}
Expand description

A *.wat file parser, or a parser for one parenthesized module.

This is the top-level type which you’ll frequently parse when working with this crate. A *.wat file is either one module s-expression or a sequence of s-expressions that are module fields.

Fields

module: Module<'a>

Trait Implementations

Formats the value using the given formatter. Read more

Attempts to parse Self from parser, returning an error if it could not be parsed. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.