Skip to main content

MAX_COMPOSITE_DEPTH

Constant MAX_COMPOSITE_DEPTH 

Source
pub const MAX_COMPOSITE_DEPTH: u8 = 8;
Expand description

Maximum composite nesting depth.

Mirrors the recursion-depth discipline used for nested Tiled layouts (crate::layout::MAX_TILED_DEPTH), per docs/spec/layouts/composite.md § Binding: “a reader MUST enforce a maximum composite nesting depth of 8 levels.” A member whose own layout_tag is the composite tag counts as one additional level.