Skip to main content

is_rust_language

Function is_rust_language 

Source
pub fn is_rust_language(lang: &Language) -> bool
Expand description

Check whether a tree_sitter::Language is the Rust grammar.

Used by crate::repo_map to gate Rust-specific receiver-type heuristics. Compares the node-kind count as a proxy for grammar identity (the node-kind string table is stable across compatible ABI versions and differs between grammars).