Trait rune::runtime::Args

source ·
pub trait Args {
    // Required methods
    fn into_stack(self, stack: &mut Stack) -> VmResult<()>;
    fn try_into_vec(self) -> VmResult<Vec<Value>>;
    fn count(&self) -> usize;
}
Expand description

Trait for converting arguments onto the stack.

Required Methods§

source

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

Encode arguments onto a stack.

source

fn try_into_vec(self) -> VmResult<Vec<Value>>

Convert arguments into a vector.

source

fn count(&self) -> usize

The number of arguments.

Implementations on Foreign Types§

source§

impl Args for ()

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl Args for Vec<Value>

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A> Args for (A,)
where A: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B> Args for (A, B)
where A: ToValue, B: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C> Args for (A, B, C)
where A: ToValue, B: ToValue, C: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D> Args for (A, B, C, D)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E> Args for (A, B, C, D, E)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F> Args for (A, B, C, D, E, F)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G> Args for (A, B, C, D, E, F, G)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H> Args for (A, B, C, D, E, F, G, H)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I> Args for (A, B, C, D, E, F, G, H, I)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J> Args for (A, B, C, D, E, F, G, H, I, J)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J, K> Args for (A, B, C, D, E, F, G, H, I, J, K)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue, K: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Args for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue, K: ToValue, L: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Args for (A, B, C, D, E, F, G, H, I, J, K, L, M)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue, K: ToValue, L: ToValue, M: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Args for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue, K: ToValue, L: ToValue, M: ToValue, N: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Args for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue, K: ToValue, L: ToValue, M: ToValue, N: ToValue, O: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Args for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
where A: ToValue, B: ToValue, C: ToValue, D: ToValue, E: ToValue, F: ToValue, G: ToValue, H: ToValue, I: ToValue, J: ToValue, K: ToValue, L: ToValue, M: ToValue, N: ToValue, O: ToValue, P: ToValue,

source§

fn into_stack(self, stack: &mut Stack) -> VmResult<()>

source§

fn try_into_vec(self) -> VmResult<Vec<Value>>

source§

fn count(&self) -> usize

Implementors§

source§

impl Args for rune::alloc::Vec<Value>