Skip to main content

second_root_node_present

Function second_root_node_present 

Source
fn second_root_node_present(events: &[Event]) -> bool
Expand description

Walk events to detect a document that already contains a closed root-level node. Returns true when the second root node arrives and the existing event stack has no unmatched MapStart/SeqStart.