Struct josephine::js::jsapi::js::Handle [] [src]

#[repr(C)]
pub struct Handle<T> { pub _base: HandleBase<T>, pub ptr: *const T, }

Reference to a T that has been rooted elsewhere. This is most useful as a parameter type, which guarantees that the T lvalue is properly rooted. See "Move GC Stack Rooting" above.

If you want to add additional methods to Handle for a specific specialization, define a HandleBase specialization containing them.

Fields

Methods

impl<T> Handle<T>
[src]

[src]

[src]

impl Handle<Value>
[src]

impl Handle<*mut JSObject>
[src]

Trait Implementations

impl<T> Copy for Handle<T> where
    T: Copy
[src]

impl<T> Clone for Handle<T> where
    T: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Deref for Handle<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl FromJSValConvertible for Handle<Value>
[src]

[src]

impl<T> Debug for Handle<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter.

impl ToJSValConvertible for Handle<Value>
[src]

[src]