pub enum Language {
Show 27 variants
Python,
Rust,
JavaScript,
TypeScript,
Java,
C,
Cpp,
Go,
CSharp,
Php,
Ruby,
Swift,
Kotlin,
Scala,
Haskell,
Lua,
Perl,
R,
Bash,
PowerShell,
Html,
Css,
Sql,
Json,
Yaml,
Toml,
Xml,
}
Expand description
Supported programming languages
This enum represents all programming languages that the tree parser can handle. Each language corresponds to a specific tree-sitter grammar.
§Feature Flags
Most languages are gated behind feature flags to reduce compilation time and binary size:
python
- Python supportrust_lang
- Rust supportjavascript
- JavaScript supporttypescript
- TypeScript supportjava
- Java supportc
- C supportcpp
- C++ supportgo
- Go supportfull
- All languages
Variants§
Python
Rust
JavaScript
TypeScript
Java
C
Cpp
Go
CSharp
Php
Ruby
Swift
Kotlin
Scala
Haskell
Lua
Perl
R
Bash
PowerShell
Html
Css
Sql
Json
Yaml
Toml
Xml
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Language
impl<'de> Deserialize<'de> for Language
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more