Skip to main content

intern

Function intern 

Source
pub fn intern(text: &str) -> &'static str
Expand description

A &'static str for an id or key read from a file, which AxisInfo and the other machine descriptions take. Each distinct text is leaked once, so rebuilding a machine on every config change does not grow memory.