Struct v8::value::Symbol [] [src]

pub struct Symbol(_, _);

A JavaScript symbol (ECMA-262 edition 6)

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

Methods

impl Symbol
[src]

Access global symbol registry.

Note that 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.

Retrieve a global symbol.

Similar to for_name, but using a separate registry that is not accessible by (and cannot clash with) JavaScript code.

Well-known symbol Symbol.iterator.

Well-known symbol Symbol.unscopables.

Well-known symbol Symbol.toStringTag.

Well-known symbol Symbol.isConcatSpreadable.

Creates a symbol from a set of raw pointers.

Returns the underlying raw pointer behind this symbol.

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 Symbol
[src]

Formats the value using the given formatter.

impl Deref for Symbol
[src]

The resulting type after dereferencing

The method called to dereference a value

impl Clone for Symbol
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Symbol
[src]

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