Skip to main content

intern_key

Function intern_key 

Source
pub fn intern_key(k: &str) -> Arc<str>
Expand description

Intern an object key for the current thread. Returns a clone of a cached Arc<str> when the key has already been seen; otherwise allocates once and caches. Capped at a soft limit to avoid unbounded growth on pathological docs.