pub enum Language {
PlainText,
Rust,
JavaScript,
Python,
C,
Cpp,
Go,
Json,
Html,
Css,
Java,
Bash,
}Expand description
The code shape’s highlight language. Resolves to a Sublime Text grammar from
the built-in syntect set; an unknown grammar (or
PlainText) means “no parsing” — all the code is
colored with the palette’s base color.
Variants§
PlainText
No highlighting (the default value): the code is colored with the base color.
Rust
Rust.
JavaScript
JavaScript.
Python
Python.
C
C.
Cpp
C++.
Go
Go.
Json
JSON.
Html
HTML.
Css
CSS.
Java
Java.
Bash
Bash / shell.
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