Module allocator

Module allocator 

Source
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 uses FxHasher 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 without Drop, which stores its data in the arena allocator.
HashMap
A hash map without Drop, that uses FxHasher to hash keys, and stores data in arena allocator.
StringBuilder
String builder.
Vec
A Vec without Drop, which stores its data in the arena allocator.

Traits§

AllocatorAccessor
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 to FromIn is reflective, A FromIn implementation also implicitly implements IntoIn for the opposite type.
TakeIn
A trait to replace an existing AST node with a dummy.