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>,
message: String,
},
AssertUnlinkable {
module: ModuleBinary,
message: String,
},
Register {
name: Option<String>,
as_name: String,
},
PerformAction(Action<F32, F64>),
}Expand description
Script’s command.
Variants§
Module
Define, validate and instantiate a module.
Fields
module: ModuleBinaryWasm module binary to define, validate and instantiate.
AssertReturn
Assert that specified action should yield specified results.
Fields
AssertReturnCanonicalNan
Assert that specified action should yield NaN in canonical form.
AssertReturnArithmeticNan
Assert that specified action should yield NaN with 1 in MSB of fraction field.
AssertTrap
Assert that performing specified action must yield in a trap.
Fields
AssertInvalid
Assert that specified module is invalid.
Fields
module: ModuleBinaryModule that should be invalid.
AssertMalformed
Assert that specified module cannot be decoded.
Fields
module: ModuleBinaryModule that should be malformed.
AssertUninstantiable
Assert that specified module is uninstantiable.
Fields
module: ModuleBinaryModule that should be uninstantiable.
AssertExhaustion
Assert that specified action should yield in resource exhaustion.
Fields
AssertUnlinkable
Assert that specified module fails to link.
Fields
module: ModuleBinaryModule that should be unlinkable.
Register
Register a module under specified name (as_name).
Fields
PerformAction(Action<F32, F64>)
Perform the specified action.
Trait Implementations§
Source§impl<F32: Clone, F64: Clone> Clone for CommandKind<F32, F64>
impl<F32: Clone, F64: Clone> Clone for CommandKind<F32, F64>
Source§fn clone(&self) -> CommandKind<F32, F64>
fn clone(&self) -> CommandKind<F32, F64>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more