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]
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>
Implementors
impl Object for JsArrayBuffer
[src]
impl Object for JsArrayBuffer
[src]impl<T: Object> Object for JsFunction<T>
[src]
impl<T: Object> Object for JsFunction<T>
[src]