[][src]Trait nj_core::JSValue

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

Convert napi value to Rust value

Required methods

pub fn convert_to_rust(
    env: &'a JsEnv,
    js_value: napi_value
) -> Result<Self, NjError>
[src]

Loading content...

Provided methods

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

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<'a, T> JSValue<'a> for Vec<T> where
    T: JSValue<'a>, 
[src]

impl<'a> JSValue<'a> for &'a [u8][src]

Loading content...

Implementors

impl<'_> JSValue<'_> for JsCallbackFunction[src]

impl<'_> JSValue<'_> for JsObject[src]

impl<'a> JSValue<'a> for BigInt[src]

Loading content...