#[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.