Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: u32 = 32;
Expand description

Nesting deeper than this yields {} (any value): a type that contains itself (struct Node { children: Vec<Node> }) would otherwise recurse forever.