[−][src]Trait runestick::IntoArgs
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.
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]
H: ToValue + Debug,
G: ToValue + Debug,
F: ToValue + Debug,
E: ToValue + Debug,
D: ToValue + Debug,
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[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]
G: ToValue + Debug,
F: ToValue + Debug,
E: ToValue + Debug,
D: ToValue + Debug,
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[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]
F: ToValue + Debug,
E: ToValue + Debug,
D: ToValue + Debug,
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[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]
E: ToValue + Debug,
D: ToValue + Debug,
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[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]
D: ToValue + Debug,
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[src]
impl<C, B, A> IntoArgs for (C, B, A) where
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
[src]
C: ToValue + Debug,
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[src]
impl<B, A> IntoArgs for (B, A) where
B: ToValue + Debug,
A: ToValue + Debug,
[src]
B: ToValue + Debug,
A: ToValue + Debug,
fn into_args(self, stack: &mut Stack) -> Result<(), VmError>
[src]
fn into_vec(self) -> Result<Vec<Value>, VmError>
[src]
fn count() -> usize
[src]
impl<A> IntoArgs for (A,) where
A: ToValue + Debug,
[src]
A: ToValue + Debug,