Skip to main content

Crate oxc_str

Crate oxc_str 

Source
Expand description

String types for oxc.

This crate provides Str, Ident, and CompactStr types for efficient string handling.

Macros§

format_compact_str
Creates a CompactStr using interpolation of runtime expressions.
format_ident
Creates an Ident using interpolation of runtime expressions.
format_str
Creates a Str using 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§

ArenaStr
An inlinable string for oxc_allocator.
CompactStr
Lifetimeless version of Str which owns its own string data allocation.
Ident
An identifier string for oxc_allocator with a precomputed hash.
IdentBuildHasher
A BuildHasher for Ident-keyed hash maps.
IdentHasher
A Hasher that handles both Ident (precomputed) and str (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§

ArenaIdentHashMap
Arena-allocated hash map keyed by Ident, using precomputed ident hash.
ArenaIdentHashSet
Arena-allocated hash set of Ident, using precomputed ident hash.
IdentHashMap
Hash map keyed by Ident, using precomputed ident hash.
IdentHashSet
Hash set of Ident, using precomputed ident hash.