Trait node_bindgen::core::val::ExtractFromJs
source · pub trait ExtractFromJs<'a>: Sized {
fn extract(js_cb: &'a mut JsCallback) -> Result<Self, NjError>;
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§
Implementations on Foreign Types§
source§impl<'a, T> ExtractFromJs<'a> for Option<T>where
T: JSValue<'a>,
impl<'a, T> ExtractFromJs<'a> for Option<T>where
T: JSValue<'a>,
for optional argument