Enum wast::WastDirective
source · [−]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>)
QuoteModule
AssertMalformed
AssertInvalid
Register
Invoke(WastInvoke<'a>)
AssertTrap
AssertReturn
AssertExhaustion
AssertUnlinkable
AssertException
Implementations
sourceimpl WastDirective<'_>
impl WastDirective<'_>
Trait Implementations
sourceimpl<'a> Debug for WastDirective<'a>
impl<'a> Debug for WastDirective<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more