| ... | @@ -80,8 +80,10 @@ pub fn ArrayHashMapWithAllocator( | ... | @@ -80,8 +80,10 @@ pub fn ArrayHashMapWithAllocator( |
| 80 | comptime V: type, | 80 | comptime V: type, |
| 81 | /// A namespace that provides these two functions: | 81 | /// A namespace that provides these two functions: |
| 82 | /// * `pub fn hash(self, K) u32` | 82 | /// * `pub fn hash(self, K) u32` |
| 83 | /// * `pub fn eql(self, K, K) bool` | 83 | /// * `pub fn eql(self, K, K, usize) bool` |
| 84 | /// | 84 | /// |
| | 85 | /// The final `usize` in the `eql` function represents the index of the key |
| | 86 | /// that's already inside the map. |
| 85 | comptime Context: type, | 87 | comptime Context: type, |
| 86 | /// When `false`, this data structure is biased towards cheap `eql` | 88 | /// When `false`, this data structure is biased towards cheap `eql` |
| 87 | /// functions and avoids storing each key's hash in the table. Setting | 89 | /// functions and avoids storing each key's hash in the table. Setting |
| ... | @@ -525,7 +527,10 @@ pub fn ArrayHashMapUnmanaged( | ... | @@ -525,7 +527,10 @@ pub fn ArrayHashMapUnmanaged( |
| 525 | comptime V: type, | 527 | comptime V: type, |
| 526 | /// A namespace that provides these two functions: | 528 | /// A namespace that provides these two functions: |
| 527 | /// * `pub fn hash(self, K) u32` | 529 | /// * `pub fn hash(self, K) u32` |
| 528 | /// * `pub fn eql(self, K, K) bool` | 530 | /// * `pub fn eql(self, K, K, usize) bool` |
| | 531 | /// |
| | 532 | /// The final `usize` in the `eql` function represents the index of the key |
| | 533 | /// that's already inside the map. |
| 529 | comptime Context: type, | 534 | comptime Context: type, |
| 530 | /// When `false`, this data structure is biased towards cheap `eql` | 535 | /// When `false`, this data structure is biased towards cheap `eql` |
| 531 | /// functions and avoids storing each key's hash in the table. Setting | 536 | /// functions and avoids storing each key's hash in the table. Setting |