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§

source

fn extract(js_cb: &'a mut JsCallback) -> Result<Self, NjError>

extract from js callback

Provided Methods§

source

fn label() -> &'static str

Implementations on Foreign Types§

source§

impl<'a, T> ExtractFromJs<'a> for Option<T>where
    T: JSValue<'a>,

for optional argument

source§

fn label() -> &'static str

source§

fn extract(js_cb: &'a mut JsCallback) -> Result<Option<T>, NjError>

Implementors§

source§

impl ExtractFromJs<'_> for JsEnv

source§

impl<'a, T> ExtractFromJs<'a> for Twhere
    T: JSValue<'a> + ?Sized,