Trait neon::object::Object[][src]

pub trait Object: Value {
    fn get<'a, C: Context<'a>, K: PropertyKey>(
        self,
        cx: &mut C,
        key: K
    ) -> NeonResult<Handle<'a, JsValue>> { ... }
fn get_own_property_names<'a, C: Context<'a>>(
        self,
        cx: &mut C
    ) -> JsResult<'a, JsArray> { ... }
fn set<'a, C: Context<'a>, K: PropertyKey, W: Value>(
        self,
        cx: &mut C,
        key: K,
        val: Handle<'_, W>
    ) -> NeonResult<bool> { ... }
fn root<'a, C: Context<'a>>(&self, cx: &mut C) -> Root<Self> { ... } }
Expand description

The trait of all object types.

Provided methods

This is supported on crate feature napi-6 only.

Implementors