#[non_exhaustive]pub enum StdlibClass {
Date,
Map,
Match,
MatchGroups,
MatchFnResult,
RegExp,
Set,
}Expand description
Standard-library class modeled with dedicated runtime support instead of user-defined struct emission.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Date
JavaScript Date, represented by timestamp and date helper operations.
Map
JavaScript Map, represented by dictionary HIR values.
Match
Synthetic RegExp match result (RegExp.exec / String.matchAll),
backed by the generated concrete SmeltMatch runtime type. Consumer
reads (m[0], m.index, m.input, m.groups.name) resolve to typed
accessors on SmeltMatch instead of the erased SmeltUnknown path.
MatchGroups
Synthetic named-capture-group accessor for matchResult.groups. It is
the same underlying SmeltMatch value; a .name read on it resolves to
the typed named-group accessor.
MatchFnResult
Remeda parser helper result class synthesized during TypeScript lowering.
RegExp
JavaScript RegExp, backed by the generated regex runtime shim.
Set
JavaScript Set, represented by set HIR values.
Trait Implementations§
Source§impl Clone for StdlibClass
impl Clone for StdlibClass
Source§fn clone(&self) -> StdlibClass
fn clone(&self) -> StdlibClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StdlibClass
Source§impl Debug for StdlibClass
impl Debug for StdlibClass
impl Eq for StdlibClass
Source§impl Hash for StdlibClass
impl Hash for StdlibClass
Source§impl PartialEq for StdlibClass
impl PartialEq for StdlibClass
Source§fn eq(&self, other: &StdlibClass) -> bool
fn eq(&self, other: &StdlibClass) -> bool
self and other values to be equal, and is used by ==.