pub trait ClosureFunction:
Fn(&JsValue, &[JsValue], &mut Context, Captures) -> JsResult<JsValue>
+ DynCopy
+ DynClone
+ 'static { }
Expand description
Trait representing a native built-in closure.
Closures need to have this signature in order to be callable from Javascript, but most of the time the compiler is smart enough to correctly infer the types.