Skip to main content

with_resolved

Function with_resolved 

Source
pub fn with_resolved<F, R>(sym: Symbol, f: F) -> R
where F: FnOnce(&str) -> R,
Expand description

Borrow the resolved string inside a closure without allocating. The thread-local interner stays locked for the duration of f.