intern_string

Function intern_string 

Source
pub fn intern_string(s: &str) -> Arc<str>
Expand description

Intern a string globally

If the mutex is poisoned, returns a fresh Arc without interning. This ensures the library never panics due to mutex poisoning.