rune::runtime

Trait FixedArgs

Source
pub trait FixedArgs<const N: usize> {
    // Required method
    fn into_array(self) -> VmResult<[Value; N]>;
}
Expand description

Trait for converting arguments into an array.

Required Methods§

Source

fn into_array(self) -> VmResult<[Value; N]>

Encode arguments as array.

Implementations on Foreign Types§

Source§

impl FixedArgs<0> for ()

Source§

impl<A> FixedArgs<1> for (A,)
where A: ToValue,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<A, B, C, D, E, F, G, H> FixedArgs<8> 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§

impl<A, B, C, D, E, F, G, H, I> FixedArgs<9> 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§

impl<A, B, C, D, E, F, G, H, I, J> FixedArgs<10> 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§

impl<A, B, C, D, E, F, G, H, I, J, K> FixedArgs<11> 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§

impl<A, B, C, D, E, F, G, H, I, J, K, L> FixedArgs<12> 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§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> FixedArgs<13> 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§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> FixedArgs<14> 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§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> FixedArgs<15> 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§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FixedArgs<16> 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,

Implementors§