Type Alias napi_h::bindgen_prelude::Object

source ·
pub type Object = JsObject;

Aliased Type§

struct Object(/* private fields */);

Implementations§

source§

impl Object

source

pub fn get<K: AsRef<str>, V: FromNapiValue>( &self, field: K ) -> Result<Option<V>>

source

pub fn set<K: AsRef<str>, V: ToNapiValue>( &mut self, field: K, val: V ) -> Result<()>

source

pub fn keys(obj: &Object) -> Result<Vec<String>>

Trait Implementations§