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.
pub fn child<N: AstNode>(parent: &SyntaxNode) -> Option<N>The first child node castable to N. Replaces the raw
children().find(|c| c.kind() == X) idiom at field-extraction sites.