Struct v8::value::Private [] [src]

pub struct Private(_, _);

A private symbol

This is an experimental feature. Use at your own risk.

Methods

impl Private
[src]

Create a private symbol.

If name is not empty, it will be the description.

Retrieve a global private symbol.

If a symbol with this name has not been retrieved in the same isolate before, it is created. Note that private symbols created this way are never collected, so they should only be used for statically fixed properties. Also, there is only one global name space for the names used as keys. To minimize the potential for clashes, use qualified names as keys, e.g., "Class#property".

Creates a private from a set of raw pointers.

Returns the underlying raw pointer behind this private.

Methods from Deref<Target=Name>

Returns the identity hash for this object.

The current implementation uses an inline property on the object to store the identity hash.

The return value will never be 0. Also, it is not guaranteed to be unique.

Returns the underlying raw pointer behind this primitive.

Trait Implementations

impl Debug for Private
[src]

Formats the value using the given formatter.

impl Deref for Private
[src]

The resulting type after dereferencing

The method called to dereference a value

impl Clone for Private
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Private
[src]

A method called when the value goes out of scope. Read more