pub enum Language {
Rust,
Python,
JavaScript,
TypeScript,
Go,
C,
Cpp,
Java,
Unknown,
}Expand description
Supported programming languages.
Variants§
Implementations§
Source§impl Language
impl Language
Sourcepub fn parser_handle(&self) -> Option<Language>
pub fn parser_handle(&self) -> Option<Language>
Get the tree-sitter language parser. Public mirror of [parser]
for consumers outside the semantic crate (notably
crate::symbol_resolver and the repo re-export).
Trait Implementations§
impl Copy for Language
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 UnsafeUnpin 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