Struct tree_sitter::Language
source · [−]#[repr(transparent)]pub struct Language(_);
Expand description
An opaque object that defines how to parse a particular language. The code for each
Language
is generated by the Tree-sitter CLI.
Implementations
Get the ABI version number that indicates which version of the Tree-sitter CLI
that was used to generate this Language
.
Get the number of distinct node types in this language.
Get the name of the node kind for the given numerical id.
Get the numeric id for the given node kind.
Check if the node type for the given numerical id is named (as opposed to an anonymous node type).
Get the number of distinct field names in this language.
Get the field names for the given numerical id.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more