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 usesFxHasherto hash keys, and stores data in arena allocator. - hash_
set - A hash set without
Drop, that usesFxHasherto 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
BoxwithoutDrop, which stores its data in the arena allocator. - HashMap
- A hash map without
Drop, that usesFxHasherto hash keys, and stores data in arena allocator. - HashSet
- A hash set without
Drop, that usesFxHasherto hash keys, and stores data in arena allocator. - String
Builder - String builder.
- Vec
- A
VecwithoutDrop, 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
Fromtrait. - GetAddress
- Trait for getting the memory address of an AST node.
- IntoIn
- This trait works similarly to the standard library
Intotrait. It is similar toFromInis reflective, AFromInimplementation also implicitly implementsIntoInfor the opposite type. - TakeIn
- A trait to replace an existing AST node with a dummy.
- Unstable
Address - Trait for getting the memory address of an AST node which is not necessarily stable.