pub trait StaticJsFunction {
    // Required method
    fn call<'a, 'js>(params: Params<'a, 'js>) -> Result<Value<'js>, Error>;
}
Expand description

A trait for functions callable from JavaScript but static, Used for implementing callable objects.

Required Methods§

source

fn call<'a, 'js>(params: Params<'a, 'js>) -> Result<Value<'js>, Error>

Object Safety§

This trait is not object safe.

Implementors§