Registry / utility / string-interner

string-interner

JSON →
library0.20.0rscratesunverified

Efficient string interner with minimal memory footprint and fast access to the underlying strings.

# Cargo.toml [dependencies] string-interner = "0.20.0"
INSTALL
IMPORT
SIG · STRING-INTERNER
S
string-interner
utilityrustv0.20.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StringInterner
use string_interner::StringInterner;

Interns a string and returns its ID.

use string_interner::StringInterner; fn main() { let mut interner = StringInterner::new(); let id = interner.get_or_intern("hello"); println!("Interned string ID: {:?}", id); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.20.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
string-interner — cargo add string-interner · libregistry