Struct wasmi::RuntimeArgs
[−]
[src]
pub struct RuntimeArgs<'a>(_);
Safe wrapper for list of arguments.
Methods
impl<'a> RuntimeArgs<'a>
[src]
fn nth<T>(&self, idx: usize) -> Result<T, Error> where
RuntimeValue: TryInto<T, Error>,
[src]
RuntimeValue: TryInto<T, Error>,
Extract argument by index idx
returning error if cast is invalid or not enough arguments
fn nth_value(&self, idx: usize) -> Result<RuntimeValue, Error>
[src]
Extract argument as a runtime value by index idx
returning error is not enough arguments
fn len(&self) -> usize
[src]
Total number of arguments
Trait Implementations
impl<'a> Debug for RuntimeArgs<'a>
[src]
impl<'a> From<&'a [RuntimeValue]> for RuntimeArgs<'a>
[src]
fn from(inner: &'a [RuntimeValue]) -> Self
[src]
Performs the conversion.