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,
        _: &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

impl Object for JsArray[src]

impl Object for JsArrayBuffer[src]

impl Object for JsBuffer[src]

impl Object for JsError[src]

impl Object for JsObject[src]

impl<T: Class> Object for T[src]

impl<T: Object> Object for JsFunction<T>[src]

Loading content...