Type Alias mozjs::jsapi::JS::Heap

source ·
pub type Heap<T> = Heap<T>;

Aliased Type§

struct Heap<T> {
    pub ptr: UnsafeCell<T>,
}

Fields§

§ptr: UnsafeCell<T>

Trait Implementations§

source§

impl JSObjectStorage for Box<Heap<*mut JSObject>>

source§

impl ToJSValConvertible for Heap<*mut JSObject>

source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
source§

impl ToJSValConvertible for Heap<JSVal>

source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.