Skip to main content

MAX_CONTEXT_DEPTH

Constant MAX_CONTEXT_DEPTH 

Source
pub const MAX_CONTEXT_DEPTH: usize = 128;
Expand description

Maximum nesting depth of scoped contexts (@context inside a term definition) accepted when converting JSON into a Context.

Deeper nesting is refused with InvalidContext::TooDeep. Genuine contexts nest a handful of levels at most.