Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

pub const MAX_DEPTH: u16 = 32; // 32u16
Expand description

The deepest nesting of one value (a component of a component of…) a reader accepts.

Structural codecs refuse before entering level 33. Tag and Text use stack-independent tree codecs to preserve their vanilla depth of 512. Container iteration does not itself consume reader depth.