Trait neon::prelude::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,
        _: &mut C,
        key: K,
        val: Handle<'_, W>
    ) -> NeonResult<bool> { ... } }

The trait of all object types.

Provided methods

fn get<'a, C: Context<'a>, K: PropertyKey>(
    self,
    cx: &mut C,
    key: K
) -> NeonResult<Handle<'a, JsValue>>
[src]

fn get_own_property_names<'a, C: Context<'a>>(
    self,
    cx: &mut C
) -> JsResult<'a, JsArray>
[src]

fn set<'a, C: Context<'a>, K: PropertyKey, W: Value>(
    self,
    _: &mut C,
    key: K,
    val: Handle<'_, W>
) -> NeonResult<bool>
[src]

Loading content...

Implementors

Loading content...