pub enum TreeSitterGrammar {
Show 13 variants
Rust,
Python,
JavaScript,
TypeScript,
Tsx,
Java,
Kotlin,
CSharp,
Go,
ObjectiveC,
Zig,
C,
Cpp,
}Expand description
Closed built-in Tree-sitter grammar identity.
Variants§
Rust
Rust grammar.
Python
Python grammar.
JavaScript
JavaScript grammar.
TypeScript
TypeScript grammar.
Tsx
TSX grammar.
Java
Java grammar.
Kotlin
Kotlin grammar.
CSharp
C# grammar.
Go
Go grammar.
ObjectiveC
Objective-C grammar.
Zig
Zig grammar.
C
C grammar.
Cpp
C++ grammar.
Implementations§
Trait Implementations§
Source§impl Clone for TreeSitterGrammar
impl Clone for TreeSitterGrammar
Source§fn clone(&self) -> TreeSitterGrammar
fn clone(&self) -> TreeSitterGrammar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TreeSitterGrammar
impl Debug for TreeSitterGrammar
Source§impl PartialEq for TreeSitterGrammar
impl PartialEq for TreeSitterGrammar
Source§impl Serialize for TreeSitterGrammar
impl Serialize for TreeSitterGrammar
impl Copy for TreeSitterGrammar
impl Eq for TreeSitterGrammar
impl StructuralPartialEq for TreeSitterGrammar
Auto Trait Implementations§
impl Freeze for TreeSitterGrammar
impl RefUnwindSafe for TreeSitterGrammar
impl Send for TreeSitterGrammar
impl Sync for TreeSitterGrammar
impl Unpin for TreeSitterGrammar
impl UnwindSafe for TreeSitterGrammar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.