[][src]Struct wasmi::RuntimeArgs

pub struct RuntimeArgs<'a>(_);

Wrapper around slice of RuntimeValue for using it as an argument list conveniently.

Methods

impl<'a> RuntimeArgs<'a>
[src]

Extract argument by index idx.

Errors

Returns Err if cast is invalid or not enough arguments.

Extract argument as a RuntimeValue by index idx.

Errors

Returns Err if this list has not enough arguments.

Extract argument by index idx.

Panics

Panics if cast is invalid or not enough arguments.

Total number of arguments

Trait Implementations

impl<'a> From<&'a [RuntimeValue]> for RuntimeArgs<'a>
[src]

Performs the conversion.

impl<'a> AsRef<[RuntimeValue]> for RuntimeArgs<'a>
[src]

Performs the conversion.

impl<'a> Debug for RuntimeArgs<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for RuntimeArgs<'a>

impl<'a> Sync for RuntimeArgs<'a>

Blanket Implementations

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, 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.