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. - static_
str - Create a
Str<'static>for a string literal, evaluated at compile time.
Structs§
- Arena
Str - An inlinable string for oxc_allocator.
- Compact
Str - Lifetimeless version of
Strwhich owns its own string data allocation. - Ident
- An identifier string for oxc_allocator with a precomputed hash.
- Ident
Build Hasher - A
BuildHasherforIdent-keyed hash maps. - Ident
Hasher - A
Hasherthat handles bothIdent(precomputed) andstr(computed) hash paths. - 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. - Arena
Ident Hash Set - Arena-allocated hash set of
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.