Skip to main content

intern

Function intern 

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

The one &'static copy of a field key the class tables do not hold — an attribute the element’s class does not declare, as written in the file or set from JSON. Each distinct key is leaked once and kept for the process; there are as many as distinct undeclared attribute names, not fields.