[][src]Trait runestick::IntoArgs

pub trait IntoArgs {
    fn into_args(self, stack: &mut Stack) -> Result<(), VmError>;
fn into_vec(self) -> Result<Vec<Value>, VmError>;
fn count() -> usize; }

Trait for converting arguments into values unsafely.

This has the ability to encode references.

Required methods

fn into_args(self, stack: &mut Stack) -> Result<(), VmError>

Encode arguments into a stack.

Safety

This has the ability to encode references into the stack. The caller must ensure that the stack is cleared with clear before the references are no longer valid.

fn into_vec(self) -> Result<Vec<Value>, VmError>

Convert arguments into a vector.

fn count() -> usize

The number of arguments.

Loading content...

Implementations on Foreign Types

impl<H, G, F, E, D, C, B, A> IntoArgs for (H, G, F, E, D, C, B, A) where
    H: ToValue + Debug,
    G: ToValue + Debug,
    F: ToValue + Debug,
    E: ToValue + Debug,
    D: ToValue + Debug,
    C: ToValue + Debug,
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<G, F, E, D, C, B, A> IntoArgs for (G, F, E, D, C, B, A) where
    G: ToValue + Debug,
    F: ToValue + Debug,
    E: ToValue + Debug,
    D: ToValue + Debug,
    C: ToValue + Debug,
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<F, E, D, C, B, A> IntoArgs for (F, E, D, C, B, A) where
    F: ToValue + Debug,
    E: ToValue + Debug,
    D: ToValue + Debug,
    C: ToValue + Debug,
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<E, D, C, B, A> IntoArgs for (E, D, C, B, A) where
    E: ToValue + Debug,
    D: ToValue + Debug,
    C: ToValue + Debug,
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<D, C, B, A> IntoArgs for (D, C, B, A) where
    D: ToValue + Debug,
    C: ToValue + Debug,
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<C, B, A> IntoArgs for (C, B, A) where
    C: ToValue + Debug,
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<B, A> IntoArgs for (B, A) where
    B: ToValue + Debug,
    A: ToValue + Debug
[src]

impl<A> IntoArgs for (A,) where
    A: ToValue + Debug
[src]

impl IntoArgs for ()[src]

Loading content...

Implementors

Loading content...