pub trait IntoJsFunc<'js, P> {
// Required methods
fn param_requirements() -> ParamRequirement;
fn call<'a>(&self, params: Params<'a, 'js>) -> Result<Value<'js>>;
}
Expand description
A trait for converting a Rust function to a JavaScript function.
Required Methods§
Sourcefn param_requirements() -> ParamRequirement
fn param_requirements() -> ParamRequirement
Returns the requirements this function has for the set of arguments used to call this function.
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.