[][src]Enum wabt::script::Action

pub enum Action<F32 = f32, F64 = f64> {
    Invoke {
        module: Option<String>,
        field: String,
        args: Vec<Value<F32, F64>>,
    },
    Get {
        module: Option<String>,
        field: String,
    },
}

Description of action that should be performed on a wasm module.

Variants

Invoke

Invoke a specified function.

Fields of Invoke

module: Option<String>

Name of the module. If None, last defined module should be used.

field: String

Field name on which action should be performed.

args: Vec<Value<F32, F64>>

Arguments that should be passed to the invoked function.

Get

Read the specified global variable.

Fields of Get

module: Option<String>

Name of the module. If None, last defined module should be used.

field: String

Field name on which action should be performed.

Trait Implementations

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

impl<F32: PartialOrd, F64: PartialOrd> PartialOrd<Action<F32, F64>> for Action<F32, F64>[src]

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

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

Auto Trait Implementations

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

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

impl<F32, F64> Unpin for Action<F32, F64> where
    F32: Unpin,
    F64: Unpin

impl<F32, F64> RefUnwindSafe for Action<F32, F64> where
    F32: RefUnwindSafe,
    F64: RefUnwindSafe

impl<F32, F64> UnwindSafe for Action<F32, F64> where
    F32: UnwindSafe,
    F64: UnwindSafe

Blanket Implementations

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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