Skip to main content

maybe_grow

Function maybe_grow 

Source
pub fn maybe_grow<R>(f: impl FnOnce() -> R) -> R
Expand description

Grow the native call stack on demand, then run f. The single wrapper every deeply-recursive site should call so the guard parameters live in one place. Transparent: it only provides more stack when near the limit; it never changes results.