Skip to main content

element_children_iter

Function element_children_iter 

Source
pub fn element_children_iter(node: &Node) -> impl Iterator<Item = Node> + use<>
Expand description

Iterator version of element_children — walks the sibling chain lazily. Prefer this in hot paths that only need to read or filter children without materializing a Vec. Callers that need len() or random access still want the Vec version.