oxc/crates/oxc_allocator/src
overlookmotel bf4e5e1c18 feat(allocator): add HashMap (#8553)
Add `HashMap` type to `oxc_allocator`. `HashMap` is a thin wrapper around `hashbrown::HashMap`, which allocates in the arena. The inner map is wrapped in `ManuallyDrop`, so `HashMap` is non-`Drop` (same as `oxc_allocator::Vec`).

We use `FxHasher` for all hash maps, so I figured just make that part of the type, rather than having to specify the hasher everywhere we use `HashMap`.
2025-01-16 23:29:57 +00:00
..
address.rs chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
allocator_api2.rs feat(ast): implement allocator_api2 for Allocator (#8043) 2024-12-20 13:26:48 +00:00
boxed.rs chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
clone_in.rs chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
convert.rs docs(allocator): enable lint warnings on missing docs, and add missing doc comments (#6613) 2024-10-15 22:50:48 +00:00
hash_map.rs feat(allocator): add HashMap (#8553) 2025-01-16 23:29:57 +00:00
lib.rs feat(allocator): add HashMap (#8553) 2025-01-16 23:29:57 +00:00
serialize.rs
vec.rs docs(allocator): update docs for Vec (#8555) 2025-01-16 19:18:16 +00:00