pub trait ExtractArgFromJs<'a>: Sized {
// Required method
fn convert_arg_at(
js_cb: &'a JsCallback,
index: usize,
) -> Result<Self, NjError>;
// Provided method
fn label() -> &'static str { ... }
}
Required Methods§
Sourcefn convert_arg_at(js_cb: &'a JsCallback, index: usize) -> Result<Self, NjError>
fn convert_arg_at(js_cb: &'a JsCallback, index: usize) -> Result<Self, NjError>
convert js callback argument at index
Provided Methods§
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.