pub enum Language {
Show 110 variants
UnspecifiedLanguage = 0,
ABAP = 60,
Apex = 96,
APL = 49,
Ada = 39,
Agda = 45,
AsciiDoc = 86,
Assembly = 58,
Awk = 66,
Bat = 68,
BibTeX = 81,
C = 34,
COBOL = 59,
CPP = 35,
CSS = 26,
CSharp = 1,
Clojure = 8,
Coffeescript = 21,
CommonLisp = 9,
Coq = 47,
CUDA = 97,
Dart = 3,
Delphi = 57,
Diff = 88,
Dockerfile = 80,
Dyalog = 50,
Elixir = 17,
Erlang = 18,
FSharp = 42,
Fish = 65,
Flow = 24,
Fortran = 56,
Git_Commit = 91,
Git_Config = 89,
Git_Rebase = 92,
Go = 33,
GraphQL = 98,
Groovy = 7,
HTML = 30,
Hack = 20,
Handlebars = 90,
Haskell = 44,
Idris = 46,
Ini = 72,
J = 51,
JSON = 75,
Java = 6,
JavaScript = 22,
JavaScriptReact = 93,
Jsonnet = 76,
Julia = 55,
Justfile = 109,
Kotlin = 4,
LaTeX = 83,
Lean = 48,
Less = 27,
Lua = 12,
Luau = 108,
Makefile = 79,
Markdown = 84,
Matlab = 52,
Nickel = 110,
Nix = 77,
OCaml = 41,
Objective_C = 36,
Objective_CPP = 37,
Pascal = 99,
PHP = 19,
PLSQL = 70,
Perl = 13,
PowerShell = 67,
Prolog = 71,
Protobuf = 100,
Python = 15,
R = 54,
Racket = 11,
Raku = 14,
Razor = 62,
Repro = 102,
ReST = 85,
Ruby = 16,
Rust = 40,
SAS = 61,
SCSS = 29,
SML = 43,
SQL = 69,
Sass = 28,
Scala = 5,
Scheme = 10,
ShellScript = 64,
Skylark = 78,
Slang = 107,
Solidity = 95,
Svelte = 106,
Swift = 2,
Tcl = 101,
TOML = 73,
TeX = 82,
Thrift = 103,
TypeScript = 23,
TypeScriptReact = 94,
Verilog = 104,
VHDL = 105,
VisualBasic = 63,
Vue = 25,
Wolfram = 53,
XML = 31,
XSL = 32,
YAML = 74,
Zig = 38,
}
Expand description
Language standardises names of common programming languages that can be used
for the Document.language
field. The primary purpose of this enum is to
prevent a situation where we have a single programming language ends up with
multiple string representations. For example, the C++ language uses the name
“CPP” in this enum and other names such as “cpp” are incompatible.
Feel free to send a pull-request to add missing programming languages.
Variants§
UnspecifiedLanguage = 0
ABAP = 60
Apex = 96
APL = 49
Ada = 39
Agda = 45
AsciiDoc = 86
Assembly = 58
Awk = 66
Bat = 68
BibTeX = 81
C = 34
COBOL = 59
CPP = 35
CSS = 26
CSharp = 1
Clojure = 8
Coffeescript = 21
CommonLisp = 9
Coq = 47
CUDA = 97
Dart = 3
Delphi = 57
Diff = 88
Dockerfile = 80
Dyalog = 50
Elixir = 17
Erlang = 18
FSharp = 42
Fish = 65
Flow = 24
Fortran = 56
Git_Commit = 91
Git_Config = 89
Git_Rebase = 92
Go = 33
GraphQL = 98
Groovy = 7
HTML = 30
Hack = 20
Handlebars = 90
Haskell = 44
Idris = 46
Ini = 72
J = 51
JSON = 75
Java = 6
JavaScript = 22
JavaScriptReact = 93
Jsonnet = 76
Julia = 55
Justfile = 109
Kotlin = 4
LaTeX = 83
Lean = 48
Less = 27
Lua = 12
Luau = 108
Makefile = 79
Markdown = 84
Matlab = 52
Nickel = 110
Nix = 77
OCaml = 41
Objective_C = 36
Objective_CPP = 37
Pascal = 99
PHP = 19
PLSQL = 70
Perl = 13
PowerShell = 67
Prolog = 71
Protobuf = 100
Python = 15
R = 54
Racket = 11
Raku = 14
Razor = 62
Repro = 102
ReST = 85
Ruby = 16
Rust = 40
SAS = 61
SCSS = 29
SML = 43
SQL = 69
Sass = 28
Scala = 5
Scheme = 10
ShellScript = 64
Skylark = 78
Slang = 107
Solidity = 95
Svelte = 106
Swift = 2
Tcl = 101
TOML = 73
TeX = 82
Thrift = 103
TypeScript = 23
TypeScriptReact = 94
Verilog = 104
VHDL = 105
VisualBasic = 63
Vue = 25
Wolfram = 53
XML = 31
XSL = 32
YAML = 74
Zig = 38
Trait Implementations§
Source§impl Enum for Language
impl Enum for Language
Source§impl EnumFull for Language
impl EnumFull for Language
Source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
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 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