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]

[src]

Extract argument by index idx.

Errors

Returns Err if cast is invalid or not enough arguments.

[src]

Extract argument as a RuntimeValue by index idx.

Errors

Returns Err if this list has not enough arguments.

[src]

Extract argument by index idx.

Panics

Panics if cast is invalid or not enough arguments.

[src]

Total number of arguments

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Performs the conversion.

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

Important traits for &'a mut [u8]
[src]

Performs the conversion.

Auto Trait Implementations

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

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