Skip to main content

Crate oxc_str

Crate oxc_str 

Source
Expand description

String types for oxc.

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

Re-exports§

pub use ident::ArenaIdentHashMap;
pub use ident::Ident;
pub use ident::IdentHashMap;
pub use ident::IdentHashSet;

Modules§

ident
Identifier string type with precomputed hash.

Macros§

format_atom
Creates an Atom using interpolation of runtime expressions.
format_compact_str
Creates a CompactStr using interpolation of runtime expressions.
format_ident
Creates an Ident using interpolation of runtime expressions.

Structs§

Atom
An inlinable string for oxc_allocator.
CompactStr
Lifetimeless version of crate::Atom which owns its own string data allocation.

Constants§

MAX_INLINE_LEN
Maximum length for inline string, which can be created with CompactStr::new_const.