[][src]Struct node_bindgen::core::val::JsObject

pub struct JsObject { /* fields omitted */ }

represent arbitrary js object

Methods

impl JsObject[src]

pub fn new(env: JsEnv, napi_value: *mut napi_value__) -> JsObject[src]

pub fn env(&self) -> &JsEnv[src]

pub fn napi_value(&self) -> *mut napi_value__[src]

pub fn get_property(&self, key: &str) -> Result<JsObject, NjError>[src]

get property

pub fn as_value<T>(&self) -> Result<T, NjError> where
    T: JSValue
[src]

convert to equivalent rust object

Trait Implementations

impl JSValue for JsObject[src]

impl Send for JsObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.