ustr

Function ustr

source
pub fn ustr(s: &str) -> Ustr
Expand description

Create a new Ustr from the given str.

ยงExamples

use ustr::ustr;

let u1 = ustr("the quick brown fox");
let u2 = ustr("the quick brown fox");
assert_eq!(u1, u2);
assert_eq!(ustr::num_entries(), 1);