[][src]Trait rhai::NativeCallable

pub trait NativeCallable {
    fn abi(&self) -> NativeFunctionABI;
fn call(
        &self,
        args: &mut [&'a mut Dynamic]
    ) -> Result<Dynamic, Box<EvalAltResult>>; }

Trait implemented by all native Rust functions that are callable by Rhai.

Required methods

fn abi(&self) -> NativeFunctionABI

Get the ABI type of a native Rust function.

fn call(
    &self,
    args: &mut [&'a mut Dynamic]
) -> Result<Dynamic, Box<EvalAltResult>>

Call a native Rust function.

Loading content...

Implementors

Loading content...