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> { ... } }
Expand description
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]
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>
[src]
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>
[src]
self,
_: &mut C,
key: K,
val: Handle<'_, W>
) -> NeonResult<bool>