A fast and efficient string interning for Rust
MIT License
Fast and efficient string interning with a simple API.
Add the following to your Cargo.toml
:
[dependencies]
intern_string = "0.1.0"
use intern_string::Intern;
let mut interner = Intern::new();
let id = interner.intern("hello");
assert_eq!(interner.lookup(id), 0);