Skip to main content

MAX_NESTING_DEPTH

Constant MAX_NESTING_DEPTH 

Source
pub const MAX_NESTING_DEPTH: usize = 256;
Expand description

The deepest parse tree parse_bounded accepts. The deepest model in the repository reaches 48; a level of nested expression costs about 5-6, so this admits about 40 nested parens/calls/cases (125 nested types) while keeping every recursive walk downstream (the PyO3 conversion, Python’s tree conversion and hydration) inside its stack.