[][src]Trait nj_core::val::ExtractFromJs

pub trait ExtractFromJs<'a>: Sized {
    pub fn extract(js_cb: &'a mut JsCallback) -> Result<Self, NjError>;

    pub fn label() -> &'static str { ... }
}

#[deprecated(since = "4.1.0","No longer used"]

Required methods

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

extract from js callback

Loading content...

Provided methods

pub fn label() -> &'static str[src]

Loading content...

Implementations on Foreign Types

impl<'a, T: Sized> ExtractFromJs<'a> for Option<T> where
    T: JSValue<'a>, 
[src]

for optional argument

Loading content...

Implementors

impl<'_> ExtractFromJs<'_> for JsEnv[src]

impl<'a, T: ?Sized> ExtractFromJs<'a> for T where
    T: JSValue<'a>, 
[src]

Loading content...