[][src]Trait qjs::DefinePropertyGetSet

pub trait DefinePropertyGetSet {
    fn define_property(
        self,
        ctxt: &ContextRef,
        this: &Value,
        getter: Option<&Value>,
        setter: Option<&Value>,
        flags: Prop
    ) -> Result<bool, Error>; }

Required methods

fn define_property(
    self,
    ctxt: &ContextRef,
    this: &Value,
    getter: Option<&Value>,
    setter: Option<&Value>,
    flags: Prop
) -> Result<bool, Error>

Defines a new property with getter and setter directly on an object, or modifies an existing property on an object.

Loading content...

Implementors

impl<T> DefinePropertyGetSet for T where
    T: NewAtom
[src]

Loading content...