#[non_exhaustive]pub enum Language {
Show 25 variants
JavaScript,
TypeScript,
Graphql,
Protobuf,
Rust,
Python,
Go,
Java,
CSharp,
C,
Cpp,
Sql,
Solidity,
Swift,
Terraform,
Html,
Xml,
Markdown,
Mdx,
ReStructuredText,
AsciiDoc,
Css,
Scss,
Bash,
Yaml,
}Expand description
A language this crate can tokenize.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JavaScript
TypeScript
Graphql
Protobuf
Rust
Python
Go
Java
CSharp
C
Cpp
Sql
Solidity
Swift
Terraform
Html
Xml
Markdown
Mdx
Markdown with JavaScript imports and components.
ReStructuredText
AsciiDoc
Css
Scss
SCSS, Sass and Less, which differ from CSS by allowing // comments
and nesting selectors.
Bash
Yaml
Implementations§
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