Trait StaticJsFunction

Source
pub trait StaticJsFunction {
    // Required method
    fn call<'a, 'js>(params: Params<'a, 'js>) -> Result<Value<'js>>;
}
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>>

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.

Implementors§