[][src]Struct napi::JsObject

pub struct JsObject(_);

Implementations

impl JsObject[src]

pub fn set_property<V: NapiValue>(
    &mut self,
    key: JsString,
    value: V
) -> Result<()>
[src]

pub fn set_number_indexed_property<V: NapiValue>(
    &mut self,
    key: JsNumber,
    value: V
) -> Result<()>
[src]

pub fn set_named_property<T: NapiValue>(
    &mut self,
    name: &str,
    value: T
) -> Result<()>
[src]

pub fn get_named_property<T: NapiValue>(&self, name: &str) -> Result<T>[src]

pub fn get_property_names<T: NapiValue>(&self) -> Result<T>[src]

pub fn set_index<T: NapiValue>(&mut self, index: usize, value: T) -> Result<()>[src]

pub fn get_index<T: NapiValue>(&self, index: u32) -> Result<T>[src]

pub fn is_array(&self) -> Result<bool>[src]

pub fn is_buffer(&self) -> Result<bool>[src]

pub fn to_buffer(&self) -> Result<JsBuffer>[src]

pub fn get_array_length(&self) -> Result<u32>[src]

impl JsObject[src]

pub fn into_unknown(self) -> Result<JsUnknown>[src]

pub fn coerce_to_number(self) -> Result<JsNumber>[src]

pub fn coerce_to_string(self) -> Result<JsString>[src]

pub fn coerce_to_object(self) -> Result<JsObject>[src]

pub fn is_date(&self) -> Result<bool>[src]

pub fn is_error(&self) -> Result<bool>[src]

pub fn is_typedarray(&self) -> Result<bool>[src]

pub fn is_dataview(&self) -> Result<bool>[src]

pub fn instanceof<Constructor: NapiValue>(
    &self,
    constructor: Constructor
) -> Result<bool>
[src]

impl JsObject[src]

pub fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self[src]

Trait Implementations

impl Debug for JsObject[src]

impl NapiValue for JsObject[src]

Auto Trait Implementations

impl RefUnwindSafe for JsObject

impl !Send 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]

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.