Skip to main content

intern

Function intern 

Source
pub fn intern(s: &str) -> InternedStr
Expand description

Interns s into the global pool and returns an InternedStr handle.

Identical strings always return the same handle.

ยงPanics

Panics if the global pool mutex is poisoned (another thread panicked while holding the lock, which should never happen under normal usage).