Skip to main content

Heap

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<T> FromJSValConvertible for Box<Heap<T>>

Source§

type Config = <T as FromJSValConvertible>::Config

Optional configurable behaviour switch; use () for no configuration.
Source§

fn from_jsval( cx: &mut JSContext, value: HandleValue<'_>, config: Self::Config, ) -> Result<ConversionResult<Self>, ()>

Convert val to type Self. Optional configuration of type T can be passed as the option argument. If it returns Err(()), a JSAPI exception is pending. If it returns Ok(Failure(reason)), there is no pending JSAPI exception.
Source§

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

Source§

impl ToJSValConvertible for Heap<*mut JSObject>

Source§

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§

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

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