Skip to main content

child

Function child 

Source
pub fn child<N: AstNode>(parent: &SyntaxNode) -> Option<N>
Expand description

The first child node castable to N. Replaces the raw children().find(|c| c.kind() == X) idiom at field-extraction sites.