[][src]Trait node_bindgen::core::val::ExtractFromJs

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

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

Required methods

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

extract from js callback

Loading content...

Provided methods

fn label() -> &'static str

Loading content...

Implementations on Foreign Types

impl<T> ExtractFromJs for Option<T> where
    T: JSValue
[src]

for optional argument

Loading content...

Implementors

impl ExtractFromJs for JsEnv[src]

impl<T> ExtractFromJs for T where
    T: JSValue + ?Sized
[src]

Loading content...