micromegas_tracing/
intern_string.rs

1//! Store dynamically-created strings in a global container.
2//! Strings are never released from the container.
3use internment::Intern;
4
5pub fn intern_string(input: &str) -> &'static str {
6    Intern::<String>::from_ref(input).as_ref()
7}