Enum scip::types::Language

source ·
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 Clone for Language

source§

fn clone(&self) -> Language

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Language

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Language

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Enum for Language

source§

const NAME: &'static str = "Language"

Enum name as specified in .proto file. Read more
source§

fn value(&self) -> i32

Get enum i32 value.
source§

fn from_i32(value: i32) -> Option<Language>

Try to create an enum from i32 value. Return None if value is unknown.
source§

const VALUES: &'static [Language] = _

All enum values for enum type.
source§

impl EnumFull for Language

source§

fn enum_descriptor() -> EnumDescriptor

Get enum descriptor by type.
source§

fn descriptor(&self) -> EnumValueDescriptor

Get enum value descriptor.
source§

impl Hash for Language

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Language

source§

fn eq(&self, other: &Language) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Language

source§

impl Eq for Language

source§

impl StructuralEq for Language

source§

impl StructuralPartialEq for Language

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.