pub trait AsProperty<'js, P> {
    fn config(
        self,
        ctx: Ctx<'js>
    ) -> Result<(c_int, Value<'js>, Value<'js>, Value<'js>)>; }
Available on crate feature properties only.
Expand description

The property interface

Required Methods

Property configuration

Returns the tuple which includes the following:

  • flags
  • value or undefined when no value is here
  • getter or undefined if the property hasn’t getter
  • setter or undefined if the property hasn’t setter

Implementors

A property with getter only

A property with getter and setter

A property with setter only