Expand description
String types for oxc.
This crate provides Str, Ident, and CompactStr types for efficient string handling.
Macros§
- format_
compact_ str - Creates a
CompactStrusing interpolation of runtime expressions. - format_
ident - Creates an
Identusing interpolation of runtime expressions. - format_
str - Creates a
Strusing interpolation of runtime expressions. - static_
ident - Creates an
Ident<'static>for a string literal, evaluated at compile time.
Structs§
- Compact
Str - Lifetimeless version of
Strwhich owns its own string data allocation. - Ident
- An identifier string for oxc_allocator with a precomputed hash.
- Str
- An inlinable string for oxc_allocator.
Constants§
- MAX_
INLINE_ LEN - Maximum length for inline string, which can be created with
CompactStr::new_const.
Type Aliases§
- Arena
Ident Hash Map - Arena-allocated hash map keyed by
Ident, using precomputed ident hash. - Ident
Hash Map - Hash map keyed by
Ident, using precomputed ident hash. - Ident
Hash Set - Hash set of
Ident, using precomputed ident hash.