A small Rust crate that provides a naïve string interner. Consult the [documentation] to learn about the types that are exposed.
Add the following to your Cargo.toml
file:
toml
[dependencies]
symbol_interner = "0.1"
You can create a new interner and store symbols using the Interner::new()
and Interner.intern()
methods.
```rust use symbol_interner::prelude::*;
let mut interner = Interner::default();
let mut offset: Result
assert_eq!(offset.unwrap(), 0); ```