Skip to main content

descendant_or_self_elements

Function descendant_or_self_elements 

Source
pub fn descendant_or_self_elements(
    root: &Node,
    keep: impl FnMut(&Node) -> bool,
) -> Vec<Node>
Expand description

The elements of root’s subtree, root included, that keep accepts, in document order: the walk behind a whole-document descendant-or-self::*[pred], which libxml2 2.15 answers through a node set over every element and refuses past 10,000,000 of them (“XPath evaluation failure”, #802).