Trait mozjs::typedarray::JSObjectStorage
source · 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§
Object Safety§
This trait is not object safe.