[][src]Enum wabt::script::CommandKind

pub enum CommandKind<F32 = f32, F64 = f64> {
    Module {
        module: ModuleBinary,
        name: Option<String>,
    },
    AssertReturn {
        action: Action<F32, F64>,
        expected: Vec<Value<F32, F64>>,
    },
    AssertReturnCanonicalNan {
        action: Action<F32, F64>,
    },
    AssertReturnArithmeticNan {
        action: Action<F32, F64>,
    },
    AssertTrap {
        action: Action<F32, F64>,
        message: String,
    },
    AssertInvalid {
        module: ModuleBinary,
        message: String,
    },
    AssertMalformed {
        module: ModuleBinary,
        message: String,
    },
    AssertUninstantiable {
        module: ModuleBinary,
        message: String,
    },
    AssertExhaustion {
        action: Action<F32, F64>,
    },
    AssertUnlinkable {
        module: ModuleBinary,
        message: String,
    },
    Register {
        name: Option<String>,
        as_name: String,
    },
    PerformAction(Action<F32, F64>),
}

Script's command.

Variants

Define, validate and instantiate a module.

Fields of Module

Wasm module binary to define, validate and instantiate.

If the name is specified, the module should be registered under this name.

Assert that specified action should yield specified results.

Fields of AssertReturn

Action to perform.

Values that expected to be yielded by the action.

Assert that specified action should yield NaN in canonical form.

Fields of AssertReturnCanonicalNan

Action to perform.

Assert that specified action should yield NaN with 1 in MSB of fraction field.

Fields of AssertReturnArithmeticNan

Action to perform.

Assert that performing specified action must yield in a trap.

Fields of AssertTrap

Action to perform.

Expected failure should be with this message.

Assert that specified module is invalid.

Fields of AssertInvalid

Module that should be invalid.

Expected failure should be with this message.

Assert that specified module cannot be decoded.

Fields of AssertMalformed

Module that should be malformed.

Expected failure should be with this message.

Assert that specified module is uninstantiable.

Fields of AssertUninstantiable

Module that should be uninstantiable.

Expected failure should be with this message.

Assert that specified action should yield in resource exhaustion.

Fields of AssertExhaustion

Action to perform.

Assert that specified module fails to link.

Fields of AssertUnlinkable

Module that should be unlinkable.

Expected failure should be with this message.

Register a module under specified name (as_name).

Fields of Register

Name of the module, which should be registered under different name.

If None then the last defined module should be used.

New name of the specified module.

Perform the specified action.

Trait Implementations

impl<F32: Clone, F64: Clone> Clone for CommandKind<F32, F64>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F32: PartialEq, F64: PartialEq> PartialEq<CommandKind<F32, F64>> for CommandKind<F32, F64>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<F32: Debug, F64: Debug> Debug for CommandKind<F32, F64>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<F32, F64> Send for CommandKind<F32, F64> where
    F32: Send,
    F64: Send

impl<F32, F64> Sync for CommandKind<F32, F64> where
    F32: Sync,
    F64: Sync

Blanket Implementations

impl<T> FromBits for T
[src]

Convert other to Self, preserving bitwise representation

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.