[][src]Struct boa::builtins::symbol::WellKnownSymbols

pub struct WellKnownSymbols { /* fields omitted */ }

A structure that contains the JavaScript well known symbols.

Implementations

impl WellKnownSymbols[src]

pub fn async_iterator_symbol(&self) -> RcSymbol[src]

The Symbol.asyncIterator well known symbol.

A method that returns the default AsyncIterator for an object. Called by the semantics of the for-await-of statement.

pub fn has_instance_symbol(&self) -> RcSymbol[src]

The Symbol.hasInstance well known symbol.

A method that determines if a constructor object recognizes an object as one of the constructor's instances. Called by the semantics of the instanceof operator.

pub fn is_concat_spreadable_symbol(&self) -> RcSymbol[src]

The Symbol.isConcatSpreadable well known symbol.

A Boolean valued property that if true indicates that an object should be flattened to its array elements by Array.prototype.concat.

pub fn iterator_symbol(&self) -> RcSymbol[src]

The Symbol.iterator well known symbol.

A method that returns the default Iterator for an object. Called by the semantics of the for-of statement.

pub fn match_symbol(&self) -> RcSymbol[src]

The Symbol.match well known symbol.

A regular expression method that matches the regular expression against a string. Called by the String.prototype.match method.

pub fn match_all_symbol(&self) -> RcSymbol[src]

The Symbol.matchAll well known symbol.

A regular expression method that returns an iterator, that yields matches of the regular expression against a string. Called by the String.prototype.matchAll method.

pub fn replace_symbol(&self) -> RcSymbol[src]

The Symbol.replace well known symbol.

A regular expression method that replaces matched substrings of a string. Called by the String.prototype.replace method.

pub fn search_symbol(&self) -> RcSymbol[src]

The Symbol.search well known symbol.

A regular expression method that returns the index within a string that matches the regular expression. Called by the String.prototype.search method.

pub fn species_symbol(&self) -> RcSymbol[src]

The Symbol.species well known symbol.

A function valued property that is the constructor function that is used to create derived objects.

pub fn split_symbol(&self) -> RcSymbol[src]

The Symbol.split well known symbol.

A regular expression method that splits a string at the indices that match the regular expression. Called by the String.prototype.split method.

pub fn to_primitive_symbol(&self) -> RcSymbol[src]

The Symbol.toPrimitive well known symbol.

A method that converts an object to a corresponding primitive value. Called by the ToPrimitive (Value::to_primitve) abstract operation.

pub fn to_string_tag_symbol(&self) -> RcSymbol[src]

The Symbol.toStringTag well known symbol.

A String valued property that is used in the creation of the default string description of an object. Accessed by the built-in method Object.prototype.toString.

pub fn unscopables_symbol(&self) -> RcSymbol[src]

The Symbol.unscopables well known symbol.

An object valued property whose own and inherited property names are property names that are excluded from the with environment bindings of the associated object.

Trait Implementations

impl Clone for WellKnownSymbols[src]

impl Debug for WellKnownSymbols[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,