Struct wasmi::RuntimeArgs[][src]

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> Debug for RuntimeArgs<'a>
[src]

Formats the value using the given formatter. Read more

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

Performs the conversion.

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

Important traits for &'a [u8]

Performs the conversion.

Auto Trait Implementations

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

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