pub enum TreeSitterGrammar {
Show 14 variants
Rust,
Python,
JavaScript,
TypeScript,
Tsx,
Java,
Kotlin,
CSharp,
Go,
ObjectiveC,
Zig,
C,
Cpp,
Php,
}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.
Php
PHP 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TreeSitterGrammar
Source§impl Debug for TreeSitterGrammar
impl Debug for TreeSitterGrammar
impl Eq for TreeSitterGrammar
Source§impl PartialEq for TreeSitterGrammar
impl PartialEq for TreeSitterGrammar
Source§fn eq(&self, other: &TreeSitterGrammar) -> bool
fn eq(&self, other: &TreeSitterGrammar) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TreeSitterGrammar
impl Serialize 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 UnsafeUnpin 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.