Expand description
This crate provides a function, static_str()
, which provides
a static reference to a str
by leaking it.
However, calling static_str()
multiple times on the same string
(in the same thread) will return the same string every time to save memory.
Functionsยง
- is_
cached - Check if the given
str
is cached as a staticstr
in this thread. - static_
str - Get a static reference to a
str