Skip to main content

FOLD_MAX_STACK

Constant FOLD_MAX_STACK 

Source
pub const FOLD_MAX_STACK: usize = _ /* 1_048_576usize */;
Expand description

The default of FoldOptions::max_stack: a megabyte, which leaves the other half of a default 2 MiB thread for the fold’s caller and for the frames of the callback that runs past the last check.