Skip to main content

MAX_NESTING_DEPTH

Constant MAX_NESTING_DEPTH 

Source
pub const MAX_NESTING_DEPTH: u32 = 128;
Expand description

The deepest that terms, blocks and types may nest.

A level is one term inside another ((, [, -, a call argument, a struct field), one block inside another, or one type inside another; a macro expansion parsed inside an expression counts the levels around the invocation. The json parser caps documents at the same depth.