mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
docs(allocator): improve docs for HashMap (#8616)
Clarify docs for `HashMap` on `Drop` restriction.
This commit is contained in:
parent
87568a1942
commit
01a5e5d74a
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ type FxHashMap<'alloc, K, V> = hashbrown::HashMap<K, V, FxBuildHasher, &'alloc B
|
|||
/// which own memory allocations outside the arena.
|
||||
///
|
||||
/// Static checks make this impossible to do. [`HashMap::new_in`] and all other methods which create
|
||||
/// a [`HashMap`] will refuse to compile if called with a [`Drop`] type.
|
||||
/// a [`HashMap`] will refuse to compile if either key or value is a [`Drop`] type.
|
||||
///
|
||||
/// [`FxHasher`]: rustc_hash::FxHasher
|
||||
pub struct HashMap<'alloc, K, V>(ManuallyDrop<FxHashMap<'alloc, K, V>>);
|
||||
|
|
|
|||
Loading…
Reference in a new issue