pub trait AsFunction<'js, A, R> {
    fn num_args() -> Range<usize>;
fn call(&self, input: &Input<'js>) -> Result<Value<'js>, Error>; fn post(_ctx: Ctx<'js_>, _func: &Function<'js_>) -> Result<(), Error> { ... } }
Expand description

The trait to wrap rust function to JS directly

Required methods

The possible range of function arguments

Call as JS function

Provided methods

Post-processing the function

Implementations on Foreign Types

Implementors