Enum tokei::LanguageType
[−]
[src]
pub enum LanguageType { ActionScript, Ada, Agda, Alex, Asp, AspNet, Assembly, Autoconf, Bash, Batch, C, CHeader, CMake, CSharp, CShell, Cabal, Cassius, Ceylon, Clojure, CoffeeScript, Cogent, ColdFusion, ColdFusionScript, Coq, Cpp, CppHeader, Crystal, Css, D, Dart, DeviceTree, Dockerfile, Elixir, Elm, Erlang, FSharp, Fish, Forth, FortranLegacy, FortranModern, Fstar, GdScript, Glsl, Go, Hamlet, Handlebars, Happy, Haskell, Hex, Html, Idris, IntelHex, Isabelle, Jai, Java, JavaScript, Json, Jsx, Julia, Julius, Kotlin, Lean, Less, LinkerScript, Lisp, Lua, Lucius, Madlang, Makefile, Markdown, ModuleDef, Mustache, Nim, Nix, OCaml, ObjectiveC, ObjectiveCpp, Oz, Pascal, Perl, Php, Polly, Prolog, Protobuf, PureScript, Python, Qcl, R, Rakefile, Razor, ReStructuredText, Ruby, RubyHtml, Rust, Sass, Scala, Scons, Sh, Sml, Sql, Swift, Tcl, Tex, Text, Toml, TypeScript, UnrealScript, UrWeb, UrWebProject, Vala, Vhdl, VimScript, Wolfram, Xaml, Xml, Yaml, Zsh, }
Variants
ActionScript
Ada
Agda
Alex
Asp
AspNet
Assembly
Autoconf
Bash
Batch
C
CHeader
CMake
CSharp
CShell
Cabal
Cassius
Ceylon
Clojure
CoffeeScript
Cogent
ColdFusion
ColdFusionScript
Coq
Cpp
CppHeader
Crystal
Css
D
Dart
DeviceTree
Dockerfile
Elixir
Elm
Erlang
FSharp
Fish
Forth
FortranLegacy
FortranModern
Fstar
GdScript
Glsl
Go
Hamlet
Handlebars
Happy
Haskell
Hex
Html
Idris
IntelHex
Isabelle
Jai
Java
JavaScript
Json
Jsx
Julia
Julius
Kotlin
Lean
Less
LinkerScript
Lisp
Lua
Lucius
Madlang
Makefile
Markdown
ModuleDef
Mustache
Nim
Nix
OCaml
ObjectiveC
ObjectiveCpp
Oz
Pascal
Perl
Php
Polly
Prolog
Protobuf
PureScript
Python
Qcl
R
Rakefile
Razor
ReStructuredText
Ruby
RubyHtml
Rust
Sass
Scala
Scons
Sh
Sml
Sql
Swift
Tcl
Tex
Text
Toml
TypeScript
UnrealScript
UrWeb
UrWebProject
Vala
Vhdl
VimScript
Wolfram
Xaml
Xml
Yaml
Zsh
Methods
impl LanguageType
[src]
fn name(&self) -> &'static str
[src]
Returns the display name of a language.
let bash = LanguageType::Bash; assert_eq!(bash.name(), "BASH");
fn list() -> Vec<Self>
[src]
Provides every variant in a Vec
fn from_path<P: AsRef<Path>>(entry: P) -> Option<Self>
[src]
Get language from a file path. May open and read the file.
let rust = LanguageType::from_path("./main.rs"); assert_eq!(rust, Some(LanguageType::Rust));
Trait Implementations
impl Clone for LanguageType
[src]
fn clone(&self) -> LanguageType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for LanguageType
[src]
impl Debug for LanguageType
[src]
impl Eq for LanguageType
[src]
impl Ord for LanguageType
[src]
fn cmp(&self, __arg_0: &LanguageType) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl PartialEq for LanguageType
[src]
fn eq(&self, __arg_0: &LanguageType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialOrd for LanguageType
[src]
fn partial_cmp(&self, __arg_0: &LanguageType) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more