Skip to main content

resolve

Function resolve 

Source
pub fn resolve(handle: InternedStr) -> &'static str
Expand description

Resolves handle to its &'static str content using the global pool.

The returned slice has 'static lifetime because the string is leaked on first resolution and thereafter cached as a static pointer.

ยงPanics

Panics if the global pool mutex is poisoned or if handle was not produced by intern (i.e., the raw index is out of range).