Enum wast::WastDirective [−][src]
pub enum WastDirective<'a> {
Module(Module<'a>),
QuoteModule {
span: Span,
source: Vec<&'a [u8]>,
},
AssertMalformed {
span: Span,
module: QuoteModule<'a>,
message: &'a str,
},
AssertInvalid {
span: Span,
module: QuoteModule<'a>,
message: &'a str,
},
Register {
span: Span,
name: &'a str,
module: Option<Id<'a>>,
},
Invoke(WastInvoke<'a>),
AssertTrap {
span: Span,
exec: WastExecute<'a>,
message: &'a str,
},
AssertReturn {
span: Span,
exec: WastExecute<'a>,
results: Vec<AssertExpression<'a>>,
},
AssertExhaustion {
span: Span,
call: WastInvoke<'a>,
message: &'a str,
},
AssertUnlinkable {
span: Span,
module: Module<'a>,
message: &'a str,
},
AssertException {
span: Span,
exec: WastExecute<'a>,
},
}
Expand description
The different kinds of directives found in a *.wast
file.
It’s not entirely clear to me what all of these are per se, but they’re only really interesting to test harnesses mostly.
Variants
Module(Module<'a>)
Tuple Fields of Module
0: Module<'a>
Fields of AssertMalformed
Fields of AssertInvalid
Invoke(WastInvoke<'a>)
Tuple Fields of Invoke
0: WastInvoke<'a>
Fields of AssertTrap
Fields of AssertReturn
Fields of AssertExhaustion
Fields of AssertException
span: Span
exec: WastExecute<'a>