mozjs
0.14.1
Heap
Aliased type
Fields
ptr
Trait Implementations
JSObjectStorage
ToJSValConvertible
ToJSValConvertible
In mozjs::
jsapi
Type Alias
mozjs
::
jsapi
::
Heap
Copy item path
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
§
fn
as_raw
(&self) ->
*mut
JSObject
source
§
fn
from_raw
(raw:
*mut
JSObject
) -> Self
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.