Crate str_intern

source ·
Expand description

StrIntern

A simple string interner for Rust.

Modules

  • 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

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

Type Aliases

  • The type of strings that have been interned.