pub enum Lang {
Rust,
Js,
Python,
Json,
Toml,
Shell,
Plain,
}Expand description
Language for syntax highlighting.
Variants§
Rust
Rust.
Js
JavaScript and TypeScript.
Python
Python.
Json
JSON.
Toml
TOML.
Shell
Shell scripts.
Plain
No highlighting.
Implementations§
Trait Implementations§
impl Copy for Lang
impl Eq for Lang
impl StructuralPartialEq for Lang
Auto Trait Implementations§
impl Freeze 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