Expand description
Memory arena allocator used by all other submodules.
See the oxc_allocator
module-level documentation for more information.
Modules§
- hash_
map - A hash map without
Drop
, that usesFxHasher
to hash keys, and stores data in arena allocator.
Structs§
- Address
- Memory address of an AST node in arena.
- Allocator
- A bump-allocated memory arena.
- BitSet
- A bitset allocated in an arena.
- Box
- A
Box
withoutDrop
, which stores its data in the arena allocator. - HashMap
- A hash map without
Drop
, that usesFxHasher
to hash keys, and stores data in arena allocator. - String
Builder - String builder.
- Vec
- A
Vec
withoutDrop
, which stores its data in the arena allocator.
Traits§
- Allocator
Accessor - Accessor for getting the underlying allocator.
- CloneIn
- A trait to explicitly clone an object into an arena allocator.
- Dummy
- A trait to create a dummy AST node.
- FromIn
- This trait works similarly to the standard library
From
trait. - GetAddress
- Trait for getting the memory address of an AST node.
- IntoIn
- This trait works similarly to the standard library
Into
trait. It is similar toFromIn
is reflective, AFromIn
implementation also implicitly implementsIntoIn
for the opposite type. - TakeIn
- A trait to replace an existing AST node with a dummy.