Function ustr_fxhash::ustr
source · pub fn ustr(s: &str) -> Ustr
Expand description
Create a new Ustr from the given &str.
use ustr_fxhash::ustr;
let u1 = ustr("the quick brown fox");
let u2 = ustr("the quick brown fox");
assert_eq!(u1, u2);
assert_eq!(ustr_fxhash::num_entries(), 1);