Crate str_intern

Source
Expand description

§StrIntern

A simple string interner for Rust.

Modules§

sync
A thread-safe variant of the interner. Also provides a global interner (when the global feature is enabled), which comes with a free function intern, as well as an intern method for a few string types.

Structs§

Interner
An interner will keep track of strings and ensure there is only one allocation for any given string contents.
IntoIter
An owning iterator over the strings that were in an Interner.
Iter
An iterator over the strings in an Interner.

Type Aliases§

InternedStr
The type of strings that have been interned.