[−][src]Struct rusty_v8::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]
scope: &mut HandleScope<'s>,
description: Option<Local<'_, String>>
) -> Local<'s, Symbol>
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]
scope: &mut HandleScope<'s>,
description: Local<'_, String>
) -> Local<'s, Symbol>
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]
scope: &mut HandleScope<'s>
) -> Local<'s, Symbol>
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_search<'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]
impl Eq for Symbol
[src]
impl Hash for Symbol
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,