[−][src]Enum wabt::script::CommandKind
Script's command.
Variants
Module
Define, validate and instantiate a module.
Fields of Module
module: ModuleBinary | Wasm module binary to define, validate and instantiate. |
name: Option<String> | If the |
AssertReturn
Assert that specified action should yield specified results.
Fields of AssertReturn
action: Action<F32, F64> | Action to perform. |
expected: Vec<Value<F32, F64>> | Values that expected to be yielded by the action. |
AssertReturnCanonicalNan
Assert that specified action should yield NaN in canonical form.
Fields of AssertReturnCanonicalNan
action: Action<F32, F64> | Action to perform. |
AssertReturnArithmeticNan
Assert that specified action should yield NaN with 1 in MSB of fraction field.
Fields of AssertReturnArithmeticNan
action: Action<F32, F64> | Action to perform. |
AssertTrap
Assert that performing specified action must yield in a trap.
Fields of AssertTrap
action: Action<F32, F64> | Action to perform. |
message: String | Expected failure should be with this message. |
AssertInvalid
Assert that specified module is invalid.
Fields of AssertInvalid
module: ModuleBinary | Module that should be invalid. |
message: String | Expected failure should be with this message. |
AssertMalformed
Assert that specified module cannot be decoded.
Fields of AssertMalformed
module: ModuleBinary | Module that should be malformed. |
message: String | Expected failure should be with this message. |
AssertUninstantiable
Assert that specified module is uninstantiable.
Fields of AssertUninstantiable
module: ModuleBinary | Module that should be uninstantiable. |
message: String | Expected failure should be with this message. |
AssertExhaustion
Assert that specified action should yield in resource exhaustion.
Fields of AssertExhaustion
action: Action<F32, F64> | Action to perform. |
AssertUnlinkable
Assert that specified module fails to link.
Fields of AssertUnlinkable
module: ModuleBinary | Module that should be unlinkable. |
message: String | Expected failure should be with this message. |
Register
Register a module under specified name (as_name
).
Fields of Register
name: Option<String> | Name of the module, which should be registered under different name. If |
as_name: String | New name of the specified module. |
PerformAction(Action<F32, F64>)
Perform the specified action.
Trait Implementations
impl<F32: Clone, F64: Clone> Clone for CommandKind<F32, F64>
[src]
impl<F32: Clone, F64: Clone> Clone for CommandKind<F32, F64>
fn clone(&self) -> CommandKind<F32, F64>
[src]
fn clone(&self) -> CommandKind<F32, F64>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<F32: PartialEq, F64: PartialEq> PartialEq<CommandKind<F32, F64>> for CommandKind<F32, F64>
[src]
impl<F32: PartialEq, F64: PartialEq> PartialEq<CommandKind<F32, F64>> for CommandKind<F32, F64>
fn eq(&self, other: &CommandKind<F32, F64>) -> bool
[src]
fn eq(&self, other: &CommandKind<F32, F64>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CommandKind<F32, F64>) -> bool
[src]
fn ne(&self, other: &CommandKind<F32, F64>) -> bool
This method tests for !=
.
impl<F32: Debug, F64: Debug> Debug for CommandKind<F32, F64>
[src]
impl<F32: Debug, F64: Debug> Debug for CommandKind<F32, F64>
Auto Trait Implementations
impl<F32, F64> Send for CommandKind<F32, F64> where
F32: Send,
F64: Send,
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,
impl<F32, F64> Sync for CommandKind<F32, F64> where
F32: Sync,
F64: Sync,
Blanket Implementations
impl<T> FromBits for T
[src]
impl<T> FromBits for T
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 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]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 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]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,