Trait IntoArgs

Source
pub trait IntoArgs {
    // Required methods
    unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>;
    fn count() -> usize;
}
Expand description

Trait for converting arguments into values.

Required Methods§

Source

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Encode arguments to the vm.

§Safety

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

Source

fn count() -> usize

The number of arguments.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoArgs for ()

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<A> IntoArgs for (A,)
where A: UnsafeToValue + Debug,

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<B, A> IntoArgs for (B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<C, B, A> IntoArgs for (C, B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<D, C, B, A> IntoArgs for (D, C, B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<E, D, C, B, A> IntoArgs for (E, D, C, B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<F, E, D, C, B, A> IntoArgs for (F, E, D, C, B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<G, F, E, D, C, B, A> IntoArgs for (G, F, E, D, C, B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Source§

impl<H, G, F, E, D, C, B, A> IntoArgs for (H, G, F, E, D, C, B, A)

Source§

unsafe fn into_args(self, vm: &mut Vm) -> Result<(), StackError>

Source§

fn count() -> usize

Implementors§