Skip to main content

child_of_kind

Function child_of_kind 

Source
pub fn child_of_kind<'a>(node: Node<'a>, kind: &str) -> Option<Node<'a>>
Expand description

Find the first direct child of node whose kind() equals kind.

The search stops at the first match and does not allocate an intermediate collection.