pub trait JSObjectStorage {
// Required methods
fn as_raw(&self) -> *mut JSObject;
fn from_raw(raw: *mut JSObject) -> Self;
}
Expand description
Trait that specifies how pointers to wrapped objects are stored. It supports
two variants, one with bare pointer (to be rooted on stack using
CustomAutoRooter) and wrapped in a Box<Heap
Required Methods§
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.