Type Alias Heap

Source
pub type Heap<T> = Heap<T>;

Aliased Type§

#[repr(C)]
pub 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.