tiger_lib::token

Function bump

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

Allocate the string on heap with a bump allocator.

SAFETY: This is safe as long as no Bump::reset is called to deallocate memory and STR_BUMP is not dropped when thread exits.