Struct chakracore_sys::JsRef [] [src]

#[repr(C)]
pub struct JsRef(pub *mut c_void);

A reference to an object owned by the Chakra garbage collector. A Chakra runtime will automatically track JsRef references as long as they are stored in local variables or in parameters (i.e. on the stack). Storing a JsRef somewhere other than on the stack requires calling JsAddRef and JsRelease to manage the lifetime of the object, otherwise the garbage collector may free the object while it is still in use.

Methods

impl JsRef
[src]

Trait Implementations

impl Eq for JsRef
[src]

impl PartialEq for JsRef
[src]

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

This method tests for !=.

impl Copy for JsRef
[src]

impl Clone for JsRef
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for JsRef
[src]

Formats the value using the given formatter.

impl Send for JsRef
[src]