Trait neon::object::PropertyKey

source ·
pub trait PropertyKey {
    // Required methods
    unsafe fn get_from<'c, C: Context<'c>>(
        self,
        cx: &mut C,
        out: &mut Value,
        obj: Value
    ) -> bool;
    unsafe fn set_from<'c, C: Context<'c>>(
        self,
        cx: &mut C,
        out: &mut bool,
        obj: Value,
        val: Value
    ) -> bool;
}
Expand description

A property key in a JavaScript object.

Required Methods§

source

unsafe fn get_from<'c, C: Context<'c>>( self, cx: &mut C, out: &mut Value, obj: Value ) -> bool

source

unsafe fn set_from<'c, C: Context<'c>>( self, cx: &mut C, out: &mut bool, obj: Value, val: Value ) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PropertyKey for u32

source§

unsafe fn get_from<'c, C: Context<'c>>( self, cx: &mut C, out: &mut Value, obj: Value ) -> bool

source§

unsafe fn set_from<'c, C: Context<'c>>( self, cx: &mut C, out: &mut bool, obj: Value, val: Value ) -> bool

source§

impl<'a> PropertyKey for &'a str

source§

unsafe fn get_from<'c, C: Context<'c>>( self, cx: &mut C, out: &mut Value, obj: Value ) -> bool

source§

unsafe fn set_from<'c, C: Context<'c>>( self, cx: &mut C, out: &mut bool, obj: Value, val: Value ) -> bool

Implementors§

source§

impl<'a, K: Value> PropertyKey for Handle<'a, K>