Trait JsFunArgable

Source
pub trait JsFunArgable: Sized {
    // Required method
    fn call_js<R: FromTs>(&self, j: &JsFun<Self, R>) -> Result<JsValue, JsValue>;
}

Required Methods§

Source

fn call_js<R: FromTs>(&self, j: &JsFun<Self, R>) -> Result<JsValue, JsValue>

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.

Implementations on Foreign Types§

Source§

impl<T1: AsTs, T2: AsTs> JsFunArgable for (T1, T2)

Source§

fn call_js<R: FromTs>(&self, j: &JsFun<Self, R>) -> Result<JsValue, JsValue>

Source§

impl<T1: AsTs, T2: AsTs, T3: AsTs> JsFunArgable for (T1, T2, T3)

Source§

fn call_js<R: FromTs>(&self, j: &JsFun<Self, R>) -> Result<JsValue, JsValue>

Implementors§