This is supported on crate feature stack only.
Expand description

Stack management utilities.

Structs

Tracks recursion depth.

A RecursionGuard’s recursion limit was reached.

Constants

The red zone is the amount of stack space that must be available on the current stack in order for maybe_grow to call the supplied closure without allocating a new stack.

The size of any freshly allocated stacks. It was chosen to match the default stack size for threads in Rust.

Traits

A trait for types which support bounded recursion to prevent stack overflow.

Functions

Grows the stack if necessary before invoking f.