Skip to main content

MAX_BLOCK_DEPTH

Constant MAX_BLOCK_DEPTH 

Source
pub const MAX_BLOCK_DEPTH: u32 = 16;
Expand description

A safety cap on if/match nesting, not a presentation choice (ADR 0858, model-diagrams slice 3): the model is complete to this depth and the client decides how much to show. It bounds the work and the payload for a pathological handler; real code never comes near it. Beyond it the walk emits a single AltKind::Collapsed marker instead of recursing further. (It was 2, a presentation cut, until slice 3.)