[][src]Struct rusty_v8::Symbol

#[repr(C)]pub struct Symbol(_);

A JavaScript symbol (ECMA-262 edition 6)

Implementations

impl Symbol[src]

pub fn new<'s>(
    scope: &mut HandleScope<'s>,
    description: Option<Local<'_, String>>
) -> Local<'s, Symbol>
[src]

Create a symbol. If description is not empty, it will be used as the description.

pub fn for_global<'s>(
    scope: &mut HandleScope<'s>,
    description: Local<'_, String>
) -> Local<'s, 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 description space for the descriptions used as keys. To minimize the potential for clashes, use qualified descriptions as keys. Corresponds to v8::Symbol::For() in C++.

pub fn description<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, Value>[src]

Returns the description string of the symbol, or undefined if none.

pub fn get_async_iterator<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_has_instance<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_is_concat_spreadable<'s>(
    scope: &mut HandleScope<'s>
) -> Local<'s, Symbol>
[src]

pub fn get_iterator<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_match<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_replace<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_split<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_to_primitive<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_to_string_tag<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

pub fn get_unscopables<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Symbol>[src]

Trait Implementations

impl Deref for Symbol[src]

type Target = Name

The resulting type after dereferencing.

impl Eq for Symbol[src]

impl Hash for Symbol[src]

impl<'s> PartialEq<Data> for Symbol[src]

impl<'s> PartialEq<Name> for Symbol[src]

impl<'s> PartialEq<Primitive> for Symbol[src]

impl<'s> PartialEq<Symbol> for Data[src]

impl<'s> PartialEq<Symbol> for Value[src]

impl<'s> PartialEq<Symbol> for Primitive[src]

impl<'s> PartialEq<Symbol> for Name[src]

impl<'s> PartialEq<Symbol> for Symbol[src]

impl<'s> PartialEq<Value> for Symbol[src]

Auto Trait Implementations

impl RefUnwindSafe for Symbol

impl Send for Symbol

impl Sync for Symbol

impl Unpin for Symbol

impl UnwindSafe for Symbol

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.