pub enum LanguageKind {
Show 62 variants
ABAP,
WindowsBat,
BibTeX,
Clojure,
Coffeescript,
C,
CPP,
CSharp,
CSS,
D,
Delphi,
Diff,
Dart,
Dockerfile,
Elixir,
Erlang,
FSharp,
GitCommit,
GitRebase,
Go,
Groovy,
Handlebars,
Haskell,
HTML,
Ini,
Java,
JavaScript,
JavaScriptReact,
JSON,
LaTeX,
Less,
Lua,
Makefile,
Markdown,
ObjectiveC,
ObjectiveCPP,
Pascal,
Perl,
Perl6,
PHP,
Powershell,
Pug,
Python,
R,
Razor,
Ruby,
Rust,
SCSS,
SASS,
Scala,
ShaderLab,
ShellScript,
SQL,
Swift,
TypeScript,
TypeScriptReact,
TeX,
VisualBasic,
XML,
XSL,
YAML,
Custom(Cow<'static, str>),
}Expand description
Predefined Language kinds @since 3.18.0
Variants§
ABAP
WindowsBat
BibTeX
Clojure
Coffeescript
C
CPP
CSharp
CSS
D
@since 3.18.0 @proposed
Delphi
@since 3.18.0 @proposed
Diff
Dart
Dockerfile
Elixir
Erlang
FSharp
GitCommit
GitRebase
Go
Groovy
Handlebars
Haskell
HTML
Ini
Java
JavaScript
JavaScriptReact
JSON
LaTeX
Less
Lua
Makefile
Markdown
ObjectiveC
ObjectiveCPP
Pascal
@since 3.18.0 @proposed
Perl
Perl6
PHP
Powershell
Pug
Python
R
Razor
Ruby
Rust
SCSS
SASS
Scala
ShaderLab
ShellScript
SQL
Swift
TypeScript
TypeScriptReact
TeX
VisualBasic
XML
XSL
YAML
Custom(Cow<'static, str>)
A custom value.
Implementations§
Source§impl LanguageKind
impl LanguageKind
Trait Implementations§
Source§impl Clone for LanguageKind
impl Clone for LanguageKind
Source§fn clone(&self) -> LanguageKind
fn clone(&self) -> LanguageKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageKind
impl Debug for LanguageKind
Source§impl<'de> Deserialize<'de> for LanguageKind
impl<'de> Deserialize<'de> for LanguageKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LanguageKind
impl Display for LanguageKind
Source§impl From<&'static str> for LanguageKind
impl From<&'static str> for LanguageKind
Source§impl From<LanguageKind> for String
impl From<LanguageKind> for String
Source§fn from(e: LanguageKind) -> Self
fn from(e: LanguageKind) -> Self
Converts to this type from the input type.
Source§impl From<String> for LanguageKind
impl From<String> for LanguageKind
Source§impl Hash for LanguageKind
impl Hash for LanguageKind
Source§impl PartialEq for LanguageKind
impl PartialEq for LanguageKind
Source§fn eq(&self, other: &LanguageKind) -> bool
fn eq(&self, other: &LanguageKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LanguageKind
impl Serialize for LanguageKind
impl Eq for LanguageKind
impl StructuralPartialEq for LanguageKind
Auto Trait Implementations§
impl Freeze for LanguageKind
impl RefUnwindSafe for LanguageKind
impl Send for LanguageKind
impl Sync for LanguageKind
impl Unpin for LanguageKind
impl UnsafeUnpin for LanguageKind
impl UnwindSafe for LanguageKind
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