mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Include map length in diagnostics
This commit is contained in:
parent
f7f898b3b3
commit
a10329f8ff
3 changed files with 11 additions and 2 deletions
|
@ -1257,6 +1257,10 @@ impl<K, V, S> HashMap<K, V, S>
|
|||
debug_assert!(elems_left == 0 || bucket.index() != start_index);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn diagnostic_count_hashes(&self) -> usize {
|
||||
self.table.diagnostic_count_hashes()
|
||||
}
|
||||
}
|
||||
|
||||
impl<K, V, S> PartialEq for HashMap<K, V, S>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue