Trait JsHostFn
pub trait JsHostFn<T, A>:
Send
+ Sync
+ 'static { }Available on crate features
js and std only.Expand description
A read-only method with typed, extractor-style arguments.
This trait is implemented for closures whose first argument is &T.
The remaining arguments are extracted from the JavaScript call.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".