tiger_lib::token

Function leak

Source
pub(crate) fn leak(s: String) -> &'static str
Expand description

Leak the string, including any excess capacity.

It should only be used for large strings, rather than for small, individuals strings, due to the memory overhead. Use bump instead, which uses a bump allocator to store the strings.