pub trait ExtractFromJs<'a>: Sized {
// Required method
fn extract(js_cb: &'a mut JsCallback) -> Result<Self, NjError>;
// Provided method
fn label() -> &'static str { ... }
}
Expand description
#[deprecated(since = “4.1.0”,“No longer used”]
Required Methods§
Sourcefn extract(js_cb: &'a mut JsCallback) -> Result<Self, NjError>
fn extract(js_cb: &'a mut JsCallback) -> Result<Self, NjError>
extract from js callback
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.
Implementations on Foreign Types§
Source§impl<'a, T> ExtractFromJs<'a> for Option<T>where
T: JSValue<'a>,
for optional argument
impl<'a, T> ExtractFromJs<'a> for Option<T>where
T: JSValue<'a>,
for optional argument