Trait rquickjs::AsProperty[][src]

pub trait AsProperty<'js, P> {
    pub fn config(
        self,
        ctx: Ctx<'js>
    ) -> Result<(i32, Value<'js>, Value<'js>, Value<'js>), Error>; }
This is supported on crate feature properties only.

The property interface

Required methods

pub fn config(
    self,
    ctx: Ctx<'js>
) -> Result<(i32, Value<'js>, Value<'js>, Value<'js>), Error>
[src]

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
Loading content...

Implementors

impl<'js, G, GA, GR> AsProperty<'js, (GA, GR, (), ())> for Accessor<G, ()> where
    G: AsFunction<'js, GA, GR> + ParallelSend + 'static, 
[src]

A property with getter only

impl<'js, G, GA, GR, S, SA, SR> AsProperty<'js, (GA, GR, SA, SR)> for Accessor<G, S> where
    S: AsFunction<'js, SA, SR> + ParallelSend + 'static,
    G: AsFunction<'js, GA, GR> + ParallelSend + 'static, 
[src]

A property with getter and setter

impl<'js, S, SA, SR> AsProperty<'js, ((), (), SA, SR)> for Accessor<(), S> where
    S: AsFunction<'js, SA, SR> + ParallelSend + 'static, 
[src]

A property with setter only

impl<'js, T> AsProperty<'js, T> for Property<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, T> AsProperty<'js, T> for T where
    T: IntoJs<'js>, 
[src]

Loading content...