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§
fn get(&self, property: impl Into<JsValue>) -> JsValue
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.