Enum wast::WastDirective
source · pub enum WastDirective<'a> {
Wat(QuoteWat<'a>),
AssertMalformed {
span: Span,
module: QuoteWat<'a>,
message: &'a str,
},
AssertInvalid {
span: Span,
module: QuoteWat<'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<WastRet<'a>>,
},
AssertExhaustion {
span: Span,
call: WastInvoke<'a>,
message: &'a str,
},
AssertUnlinkable {
span: Span,
module: Wat<'a>,
message: &'a str,
},
AssertException {
span: Span,
exec: WastExecute<'a>,
},
Thread(WastThread<'a>),
Wait {
span: Span,
thread: Id<'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§
Wat(QuoteWat<'a>)
AssertMalformed
AssertInvalid
Register
Invoke(WastInvoke<'a>)
AssertTrap
AssertReturn
AssertExhaustion
AssertUnlinkable
AssertException
Thread(WastThread<'a>)
Wait
Implementations§
Trait Implementations§
source§impl<'a> Debug for WastDirective<'a>
impl<'a> Debug for WastDirective<'a>
Auto Trait Implementations§
impl<'a> Freeze for WastDirective<'a>
impl<'a> RefUnwindSafe for WastDirective<'a>
impl<'a> Send for WastDirective<'a>
impl<'a> Sync for WastDirective<'a>
impl<'a> Unpin for WastDirective<'a>
impl<'a> UnwindSafe for WastDirective<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more