pub struct StaticJsStrings;Expand description
List of commonly used strings in Javascript code.
Any strings defined here are used as a static JsString instead of allocating on the heap.
Implementations§
Source§impl StaticJsStrings
impl StaticJsStrings
Sourcepub const EMPTY_STRING: JsString
pub const EMPTY_STRING: JsString
Gets the static JsString for "".
Sourcepub const SYMBOL_ASYNC_ITERATOR: JsString
pub const SYMBOL_ASYNC_ITERATOR: JsString
Gets the static JsString for "Symbol.asyncIterator".
Sourcepub const SYMBOL_HAS_INSTANCE: JsString
pub const SYMBOL_HAS_INSTANCE: JsString
Gets the static JsString for "Symbol.hasInstance".
Sourcepub const SYMBOL_IS_CONCAT_SPREADABLE: JsString
pub const SYMBOL_IS_CONCAT_SPREADABLE: JsString
Gets the static JsString for "Symbol.isConcatSpreadable".
Sourcepub const SYMBOL_ITERATOR: JsString
pub const SYMBOL_ITERATOR: JsString
Gets the static JsString for "Symbol.iterator".
Sourcepub const SYMBOL_MATCH: JsString
pub const SYMBOL_MATCH: JsString
Gets the static JsString for "Symbol.match".
Sourcepub const SYMBOL_MATCH_ALL: JsString
pub const SYMBOL_MATCH_ALL: JsString
Gets the static JsString for "Symbol.matchAll".
Sourcepub const SYMBOL_REPLACE: JsString
pub const SYMBOL_REPLACE: JsString
Gets the static JsString for "Symbol.replace".
Sourcepub const SYMBOL_SEARCH: JsString
pub const SYMBOL_SEARCH: JsString
Gets the static JsString for "Symbol.search".
Sourcepub const SYMBOL_SPECIES: JsString
pub const SYMBOL_SPECIES: JsString
Gets the static JsString for "Symbol.species".
Sourcepub const SYMBOL_SPLIT: JsString
pub const SYMBOL_SPLIT: JsString
Gets the static JsString for "Symbol.split".
Sourcepub const SYMBOL_TO_PRIMITIVE: JsString
pub const SYMBOL_TO_PRIMITIVE: JsString
Gets the static JsString for "Symbol.toPrimitive".
Sourcepub const SYMBOL_TO_STRING_TAG: JsString
pub const SYMBOL_TO_STRING_TAG: JsString
Gets the static JsString for "Symbol.toStringTag".
Sourcepub const SYMBOL_UNSCOPABLES: JsString
pub const SYMBOL_UNSCOPABLES: JsString
Gets the static JsString for "Symbol.unscopables".
Sourcepub const FN_SYMBOL_ASYNC_ITERATOR: JsString
pub const FN_SYMBOL_ASYNC_ITERATOR: JsString
Gets the static JsString for "[Symbol.asyncIterator]".
Sourcepub const FN_SYMBOL_HAS_INSTANCE: JsString
pub const FN_SYMBOL_HAS_INSTANCE: JsString
Gets the static JsString for "[Symbol.hasInstance]".
Sourcepub const FN_SYMBOL_IS_CONCAT_SPREADABLE: JsString
pub const FN_SYMBOL_IS_CONCAT_SPREADABLE: JsString
Gets the static JsString for "[Symbol.isConcatSpreadable]".
Sourcepub const FN_SYMBOL_ITERATOR: JsString
pub const FN_SYMBOL_ITERATOR: JsString
Gets the static JsString for "[Symbol.iterator]".
Sourcepub const FN_SYMBOL_MATCH: JsString
pub const FN_SYMBOL_MATCH: JsString
Gets the static JsString for "[Symbol.match]".
Sourcepub const FN_SYMBOL_MATCH_ALL: JsString
pub const FN_SYMBOL_MATCH_ALL: JsString
Gets the static JsString for "[Symbol.matchAll]".
Sourcepub const FN_SYMBOL_REPLACE: JsString
pub const FN_SYMBOL_REPLACE: JsString
Gets the static JsString for "[Symbol.replace]".
Sourcepub const FN_SYMBOL_SEARCH: JsString
pub const FN_SYMBOL_SEARCH: JsString
Gets the static JsString for "[Symbol.search]".
Sourcepub const FN_SYMBOL_SPECIES: JsString
pub const FN_SYMBOL_SPECIES: JsString
Gets the static JsString for "[Symbol.species]".
Sourcepub const FN_SYMBOL_SPLIT: JsString
pub const FN_SYMBOL_SPLIT: JsString
Gets the static JsString for "[Symbol.split]".
Sourcepub const FN_SYMBOL_TO_PRIMITIVE: JsString
pub const FN_SYMBOL_TO_PRIMITIVE: JsString
Gets the static JsString for "[Symbol.toPrimitive]".
Sourcepub const FN_SYMBOL_TO_STRING_TAG: JsString
pub const FN_SYMBOL_TO_STRING_TAG: JsString
Gets the static JsString for "[Symbol.toStringTag]".
Sourcepub const FN_SYMBOL_UNSCOPABLES: JsString
pub const FN_SYMBOL_UNSCOPABLES: JsString
Gets the static JsString for "[Symbol.unscopables]".
Sourcepub const ARRAY_BUFFER: JsString
pub const ARRAY_BUFFER: JsString
Gets the static JsString for "ArrayBuffer".
Sourcepub const SHARED_ARRAY_BUFFER: JsString
pub const SHARED_ARRAY_BUFFER: JsString
Gets the static JsString for "SharedArrayBuffer".
Sourcepub const ASYNC_FUNCTION: JsString
pub const ASYNC_FUNCTION: JsString
Gets the static JsString for "AsyncFunction".
Sourcepub const ASYNC_GENERATOR: JsString
pub const ASYNC_GENERATOR: JsString
Gets the static JsString for "AsyncGenerator".
Sourcepub const ASYNC_GENERATOR_FUNCTION: JsString
pub const ASYNC_GENERATOR_FUNCTION: JsString
Gets the static JsString for "AsyncGeneratorFunction".
Sourcepub const AGGREGATE_ERROR: JsString
pub const AGGREGATE_ERROR: JsString
Gets the static JsString for "AggregateError".
Sourcepub const EVAL_ERROR: JsString
pub const EVAL_ERROR: JsString
Gets the static JsString for "EvalError".
Sourcepub const RANGE_ERROR: JsString
pub const RANGE_ERROR: JsString
Gets the static JsString for "RangeError".
Sourcepub const REFERENCE_ERROR: JsString
pub const REFERENCE_ERROR: JsString
Gets the static JsString for "ReferenceError".
Sourcepub const SYNTAX_ERROR: JsString
pub const SYNTAX_ERROR: JsString
Gets the static JsString for "SyntaxError".
Sourcepub const TYPE_ERROR: JsString
pub const TYPE_ERROR: JsString
Gets the static JsString for "TypeError".
Sourcepub const GENERATOR_FUNCTION: JsString
pub const GENERATOR_FUNCTION: JsString
Gets the static JsString for "GeneratorFunction".
Sourcepub const LIST_FORMAT: JsString
pub const LIST_FORMAT: JsString
Gets the static JsString for "ListFormat".
Sourcepub const PLURAL_RULES: JsString
pub const PLURAL_RULES: JsString
Gets the static JsString for "PluralRules".
Sourcepub const DATE_TIME_FORMAT: JsString
pub const DATE_TIME_FORMAT: JsString
Gets the static JsString for "DateTimeFormat".
Sourcepub const NUMBER_FORMAT: JsString
pub const NUMBER_FORMAT: JsString
Gets the static JsString for "NumberFormat".
Sourcepub const PARSE_FLOAT: JsString
pub const PARSE_FLOAT: JsString
Gets the static JsString for "parseFloat".
Sourcepub const TYPED_ARRAY: JsString
pub const TYPED_ARRAY: JsString
Gets the static JsString for "TypedArray".
Sourcepub const INT8_ARRAY: JsString
pub const INT8_ARRAY: JsString
Gets the static JsString for "Int8Array".
Sourcepub const UINT8_ARRAY: JsString
pub const UINT8_ARRAY: JsString
Gets the static JsString for "Uint8Array".
Sourcepub const UINT8_CLAMPED_ARRAY: JsString
pub const UINT8_CLAMPED_ARRAY: JsString
Gets the static JsString for "Uint8ClampedArray".
Sourcepub const INT16_ARRAY: JsString
pub const INT16_ARRAY: JsString
Gets the static JsString for "Int16Array".
Sourcepub const UINT16_ARRAY: JsString
pub const UINT16_ARRAY: JsString
Gets the static JsString for "Uint16Array".
Sourcepub const INT32_ARRAY: JsString
pub const INT32_ARRAY: JsString
Gets the static JsString for "Int32Array".
Sourcepub const UINT32_ARRAY: JsString
pub const UINT32_ARRAY: JsString
Gets the static JsString for "Uint32Array".
Sourcepub const BIG_INT64_ARRAY: JsString
pub const BIG_INT64_ARRAY: JsString
Gets the static JsString for "BigInt64Array".
Sourcepub const BIG_UINT64_ARRAY: JsString
pub const BIG_UINT64_ARRAY: JsString
Gets the static JsString for "BigUint64Array".
Sourcepub const FLOAT16_ARRAY: JsString
pub const FLOAT16_ARRAY: JsString
Gets the static JsString for "Float16Array".
Sourcepub const FLOAT32_ARRAY: JsString
pub const FLOAT32_ARRAY: JsString
Gets the static JsString for "Float32Array".
Sourcepub const FLOAT64_ARRAY: JsString
pub const FLOAT64_ARRAY: JsString
Gets the static JsString for "Float64Array".
Sourcepub const ENCODE_URI: JsString
pub const ENCODE_URI: JsString
Gets the static JsString for "encodeURI".
Sourcepub const ENCODE_URI_COMPONENT: JsString
pub const ENCODE_URI_COMPONENT: JsString
Gets the static JsString for "encodeURIComponent".
Sourcepub const DECODE_URI: JsString
pub const DECODE_URI: JsString
Gets the static JsString for "decodeURI".
Sourcepub const DECODE_URI_COMPONENT: JsString
pub const DECODE_URI_COMPONENT: JsString
Gets the static JsString for "decodeURIComponent".
Sourcepub const INSTANT_TAG: JsString
pub const INSTANT_TAG: JsString
Gets the static JsString for "Temporal.Instant".
Sourcepub const DURATION_TAG: JsString
pub const DURATION_TAG: JsString
Gets the static JsString for "Temporal.Duration".
Sourcepub const PLAIN_DATE_TAG: JsString
pub const PLAIN_DATE_TAG: JsString
Gets the static JsString for "Temporal.PlainDate".
Sourcepub const PLAIN_DATETIME_TAG: JsString
pub const PLAIN_DATETIME_TAG: JsString
Gets the static JsString for "Temporal.PlainDateTime".
Sourcepub const PLAIN_TIME_TAG: JsString
pub const PLAIN_TIME_TAG: JsString
Gets the static JsString for "Temporal.PlainTime".
Sourcepub const PLAIN_YM_TAG: JsString
pub const PLAIN_YM_TAG: JsString
Gets the static JsString for "Temporal.PlainYearMonth".
Sourcepub const PLAIN_MD_TAG: JsString
pub const PLAIN_MD_TAG: JsString
Gets the static JsString for "Temporal.PlainMonthDay".
Sourcepub const ZONED_DT_TAG: JsString
pub const ZONED_DT_TAG: JsString
Gets the static JsString for "Temporal.ZonedDateTime".
Sourcepub const INSTANT_NAME: JsString
pub const INSTANT_NAME: JsString
Gets the static JsString for "Instant".
Sourcepub const DURATION_NAME: JsString
pub const DURATION_NAME: JsString
Gets the static JsString for "Duration".
Sourcepub const PLAIN_DATE_NAME: JsString
pub const PLAIN_DATE_NAME: JsString
Gets the static JsString for "PlainDate".
Sourcepub const PLAIN_DATETIME_NAME: JsString
pub const PLAIN_DATETIME_NAME: JsString
Gets the static JsString for "PlainDateTime".
Sourcepub const PLAIN_TIME_NAME: JsString
pub const PLAIN_TIME_NAME: JsString
Gets the static JsString for "PlainTime".
Sourcepub const PLAIN_YM_NAME: JsString
pub const PLAIN_YM_NAME: JsString
Gets the static JsString for "PlainYearMonth".
Sourcepub const PLAIN_MD_NAME: JsString
pub const PLAIN_MD_NAME: JsString
Gets the static JsString for "PlainMonthDay".
Sourcepub const ZONED_DT_NAME: JsString
pub const ZONED_DT_NAME: JsString
Gets the static JsString for "ZonedDateTime".
Sourcepub fn get_string(string: &JsStr<'_>) -> Option<JsString>
pub fn get_string(string: &JsStr<'_>) -> Option<JsString>
Gets the JsString corresponding to string, or None if the string
doesn’t exist inside the static array.
Trait Implementations§
Source§impl Clone for StaticJsStrings
impl Clone for StaticJsStrings
Source§fn clone(&self) -> StaticJsStrings
fn clone(&self) -> StaticJsStrings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StaticJsStrings
impl Debug for StaticJsStrings
impl Copy for StaticJsStrings
Auto Trait Implementations§
impl Freeze for StaticJsStrings
impl RefUnwindSafe for StaticJsStrings
impl Send for StaticJsStrings
impl Sync for StaticJsStrings
impl Unpin for StaticJsStrings
impl UnwindSafe for StaticJsStrings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.