pub trait JsArgs<T: JsFunction> {
type BindOutput;
// Required methods
fn apply_call(
self,
func: &Function<T>,
context: &JsValue,
) -> Result<T::Ret, JsValue>;
fn apply_bind(
self,
func: &Function<T>,
context: &JsValue,
) -> Self::BindOutput;
}Expand description
Trait for argument tuples that can call or bind a Function<T>.
Required Associated Types§
type BindOutput
Required Methods§
fn apply_call( self, func: &Function<T>, context: &JsValue, ) -> Result<T::Ret, JsValue>
fn apply_bind(self, func: &Function<T>, context: &JsValue) -> Self::BindOutput
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".