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: Module<'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,
},
}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>)Show fields
Fields of AssertMalformed
Invoke(WastInvoke<'a>)Show fields
Fields of AssertTrap
Show fields
Fields of AssertReturn
Show fields
Fields of AssertExhaustion
Implementations
impl WastDirective<'_>[src]
impl WastDirective<'_>[src]