[−][src]Struct node_bindgen::core::val::JsObject
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]
T: JSValue,
convert to equivalent rust object
Trait Implementations
impl JSValue for JsObject
[src]
fn convert_to_rust(
env: &JsEnv,
js_value: *mut napi_value__
) -> Result<JsObject, NjError>
[src]
env: &JsEnv,
js_value: *mut napi_value__
) -> Result<JsObject, NjError>
impl Send for JsObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for JsObject
impl !Sync for JsObject
impl Unpin for JsObject
impl UnwindSafe for JsObject
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,