Struct js::jsapi::Heap [] [src]

#[repr(C)]
pub struct Heap<T: GCMethods + Copy> { pub ptr: UnsafeCell<T>, }

Fields

Methods

impl<T: GCMethods + Copy> Heap<T>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Debug + GCMethods + Copy> Debug for Heap<T>
[src]

[src]

Formats the value using the given formatter.

impl Trace for Heap<*mut JSFunction>
[src]

[src]

impl Trace for Heap<*mut JSObject>
[src]

[src]

impl Trace for Heap<*mut JSScript>
[src]

[src]

impl Trace for Heap<*mut JSString>
[src]

[src]

impl Trace for Heap<Value>
[src]

[src]

impl Trace for Heap<jsid>
[src]

[src]

impl<T: GCMethods + Copy> Clone for Heap<T> where
    Heap<T>: Default
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Default for Heap<*mut T> where
    *mut T: GCMethods + Copy
[src]

[src]

Returns the "default value" for a type. Read more

impl Default for Heap<Value>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: GCMethods + Copy> Drop for Heap<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: GCMethods + Copy + PartialEq> PartialEq for Heap<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl FromJSValConvertible for Heap<JSVal>
[src]

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

[src]

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. Read more

impl ToJSValConvertible for Heap<JSVal>
[src]

[src]

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

impl ToJSValConvertible for Heap<*mut JSObject>
[src]

[src]

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