| Crates.io | intern_string |
| lib.rs | intern_string |
| version | 0.2.0 |
| created_at | 2024-01-05 21:06:43.713164+00 |
| updated_at | 2024-01-07 19:52:36.993573+00 |
| description | Fast and memory efficient string interning for Rust |
| homepage | |
| repository | https://github.com/anonrig/string_interner |
| max_upload_size | |
| id | 1090464 |
| size | 9,512 |
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);