Crate ascend

Source
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 static str in this thread.
static_str
Get a static reference to a str