Trait runestick::module::Function[][src]

pub trait Function<Args>: 'static + Copy + Send + Sync {
    type Return;
    fn args() -> usize;
fn fn_call(self, stack: &mut Stack, args: usize) -> Result<(), VmError>; }
Expand description

Trait used to provide the function function.

Associated Types

The return type of the function.

Required methods

Get the number of arguments.

Perform the vm call.

Implementors