Type Alias script::dom::bindings::import::module::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<T> PartialEq<Heap<T>> for Heap<T>where T: GCMethods + Copy + PartialEq<T>,

source§

fn eq(&self, other: &Heap<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToJSValConvertible for Heap<*mut JSObject>

source§

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

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

impl ToJSValConvertible for Heap<Value>

source§

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

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

impl Traceable for Heap<*mut BigInt>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<*mut JSFunction>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<*mut JSObject>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<*mut JSScript>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<*mut JSString>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<*mut Symbol>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<PropertyDescriptor>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<PropertyKey>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
source§

impl Traceable for Heap<Value>

source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.