pub enum Wat<'a> {
Module(Module<'a>),
Component(Component<'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.
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
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.