#[non_exhaustive]pub enum Lang {
Show 18 variants
Rust,
TypeScript,
JavaScript,
Go,
C,
Cpp,
Java,
CSharp,
Python,
Shell,
Sql,
Json,
Toml,
Yaml,
Html,
Css,
Markdown,
Diff,
}Expand description
A language the built-in lexers know.
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.
Rust
TypeScript
JavaScript
Go
C
Cpp
Java
CSharp
Python
Shell
Sql
Json
Toml
Yaml
Html
Css
Markdown
Diff
Implementations§
Trait Implementations§
impl Copy for Lang
impl Eq for Lang
impl StructuralPartialEq for Lang
Auto Trait Implementations§
impl Forget for Lang
impl Freeze for Lang
impl Move for Lang
impl RefUnwindSafe for Lang
impl Send for Lang
impl Sync for Lang
impl Unpin for Lang
impl UnsafeUnpin for Lang
impl UnwindSafe for Lang
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