Struct wasmi::RuntimeArgs [−][src]
pub struct RuntimeArgs<'a>(_);
Wrapper around slice of RuntimeValue
for using it
as an argument list conveniently.
Implementations
impl<'a> RuntimeArgs<'a>
[src]
impl<'a> RuntimeArgs<'a>
[src]pub fn nth_checked<T>(&self, idx: usize) -> Result<T, Trap> where
T: FromRuntimeValue,
[src]
T: FromRuntimeValue,
pub fn nth_value_checked(&self, idx: usize) -> Result<RuntimeValue, Trap>
[src]
Extract argument as a RuntimeValue
by index idx
.
Errors
Returns Err
if this list has not enough arguments.
pub fn nth<T>(&self, idx: usize) -> T where
T: FromRuntimeValue,
[src]
T: FromRuntimeValue,
pub fn len(&self) -> usize
[src]
Total number of arguments
Trait Implementations
impl<'a> AsRef<[RuntimeValue]> for RuntimeArgs<'a>
[src]
impl<'a> AsRef<[RuntimeValue]> for RuntimeArgs<'a>
[src]fn as_ref(&self) -> &[RuntimeValue]
[src]
impl<'a> From<&'a [RuntimeValue]> for RuntimeArgs<'a>
[src]
impl<'a> From<&'a [RuntimeValue]> for RuntimeArgs<'a>
[src]