Trait JsObjectAccess

Source
pub trait JsObjectAccess {
    // Required methods
    fn get(&self, property: impl Into<JsValue>) -> JsValue;
    fn set(
        &self,
        property: impl Into<JsValue>,
        value: impl Into<JsValue>,
    ) -> bool;
}

Required Methods§

Source

fn get(&self, property: impl Into<JsValue>) -> JsValue

Source

fn set(&self, property: impl Into<JsValue>, value: impl Into<JsValue>) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§