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.
ยงExamples
use ustr::ustr as u;
let _ = u("Hello");
let _ = u(", World!");
assert_eq!(ustr::num_entries(), 2);