[][src]Enum wast::WastDirective

pub enum WastDirective<'a> {
    Module(Module<'a>),
    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>)
AssertMalformed

Fields of AssertMalformed

span: Spanmodule: QuoteModule<'a>message: &'a str
AssertInvalid

Fields of AssertInvalid

span: Spanmodule: Module<'a>message: &'a str
Register

Fields of Register

span: Spanname: &'a strmodule: Option<Id<'a>>
Invoke(WastInvoke<'a>)
AssertTrap

Fields of AssertTrap

span: Spanexec: WastExecute<'a>message: &'a str
AssertReturn

Fields of AssertReturn

span: Spanexec: WastExecute<'a>results: Vec<AssertExpression<'a>>
AssertExhaustion

Fields of AssertExhaustion

span: Spancall: WastInvoke<'a>message: &'a str
AssertUnlinkable

Fields of AssertUnlinkable

span: Spanmodule: Module<'a>message: &'a str

Methods

impl<'_> WastDirective<'_>[src]

pub fn span(&self) -> Span[src]

Returns the location in the source that this directive was defined at

Trait Implementations

impl<'a> Parse<'a> for WastDirective<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.