[][src]Trait nj_core::JSValue

pub trait JSValue: Sized {
    fn convert_to_rust(
        env: &JsEnv,
        js_value: napi_value
    ) -> Result<Self, NjError>; fn label() -> &'static str { ... } }

Try to convert napi value to Rust value

Required methods

fn convert_to_rust(env: &JsEnv, js_value: napi_value) -> Result<Self, NjError>

Loading content...

Provided methods

fn label() -> &'static str

Loading content...

Implementations on Foreign Types

impl JSValue for f64[src]

impl JSValue for i32[src]

impl JSValue for u32[src]

impl JSValue for i64[src]

impl JSValue for bool[src]

impl JSValue for String[src]

impl<T> JSValue for Vec<T> where
    T: JSValue
[src]

Loading content...

Implementors

impl JSValue for JsCallbackFunction[src]

impl JSValue for JsObject[src]

Loading content...