Struct chakracore::Property [] [src]

pub struct Property(_);

A property identifier used with objects.

Methods

impl Property
[src]

Creates a property identifier from a string.

If a property identifier with this name has already been created, it will be returned instead of creating a new one.

Converts a JavaScript property to a native string.

impl Property
[src]

Creates an instance from a raw pointer.

This is used for managing the lifetime of JSRT objects. They are tracked using reference counting; incrementing with from_raw, and decrementing with drop.

This is required to support items stored on the heap, since the JSRT runtime only observes the stack.

If used in conjunction with a Property or any Value, it is assumed a Context is active.

Returns the underlying raw pointer.

Trait Implementations

impl PartialEq for Property
[src]

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

This method tests for !=.

impl Debug for Property
[src]

Only use for debugging, it relies on an implicit active context and panics otherwise.

impl Clone for Property
[src]

Duplicates a reference counted type.

The underlying pointer will be copied, and its reference count will be incremented, returned wrapped as the type.

Performs copy-assignment from source. Read more

impl Drop for Property
[src]

Decrements the reference counter.