Function ustr_fxhash::num_entries
source · pub fn num_entries() -> usize
Expand description
Returns the number of unique strings in the cache
This may be an underestimate if other threads are writing to the cache concurrently.
use ustr_fxhash::ustr as u;
let _ = u("Hello");
let _ = u(", World!");
assert_eq!(ustr_fxhash::num_entries(), 2);