pub struct LanguageKind(pub String);Expand description
Predefined Language kinds @since 3.18.0
Tuple Fields§
§0: StringImplementations§
Source§impl LanguageKind
impl LanguageKind
pub const ABAP: &'static str = "abap"
pub const WINDOWS_BAT: &'static str = "bat"
pub const BIB_TE_X: &'static str = "bibtex"
pub const CLOJURE: &'static str = "clojure"
pub const COFFEESCRIPT: &'static str = "coffeescript"
pub const C: &'static str = "c"
pub const CPP: &'static str = "cpp"
pub const C_SHARP: &'static str = "csharp"
pub const CSS: &'static str = "css"
pub const D: &'static str = "d"
pub const DELPHI: &'static str = "pascal"
pub const DIFF: &'static str = "diff"
pub const DART: &'static str = "dart"
pub const DOCKERFILE: &'static str = "dockerfile"
pub const ELIXIR: &'static str = "elixir"
pub const ERLANG: &'static str = "erlang"
pub const F_SHARP: &'static str = "fsharp"
pub const GIT_COMMIT: &'static str = "git-commit"
pub const GIT_REBASE: &'static str = "git-rebase"
pub const GO: &'static str = "go"
pub const GROOVY: &'static str = "groovy"
pub const HANDLEBARS: &'static str = "handlebars"
pub const HASKELL: &'static str = "haskell"
pub const HTML: &'static str = "html"
pub const INI: &'static str = "ini"
pub const JAVA: &'static str = "java"
pub const JAVA_SCRIPT: &'static str = "javascript"
pub const JAVA_SCRIPT_REACT: &'static str = "javascriptreact"
pub const JSON: &'static str = "json"
pub const LA_TE_X: &'static str = "latex"
pub const LESS: &'static str = "less"
pub const LUA: &'static str = "lua"
pub const MAKEFILE: &'static str = "makefile"
pub const MARKDOWN: &'static str = "markdown"
pub const OBJECTIVE_C: &'static str = "objective-c"
pub const OBJECTIVE_CPP: &'static str = "objective-cpp"
pub const PASCAL: &'static str = "pascal"
pub const PERL: &'static str = "perl"
pub const PERL6: &'static str = "perl6"
pub const PHP: &'static str = "php"
pub const PLAINTEXT: &'static str = "plaintext"
pub const POWERSHELL: &'static str = "powershell"
pub const PUG: &'static str = "jade"
pub const PYTHON: &'static str = "python"
pub const R: &'static str = "r"
pub const RAZOR: &'static str = "razor"
pub const RUBY: &'static str = "ruby"
pub const RUST: &'static str = "rust"
pub const SCSS: &'static str = "scss"
pub const SASS: &'static str = "sass"
pub const SCALA: &'static str = "scala"
pub const SHADER_LAB: &'static str = "shaderlab"
pub const SHELL_SCRIPT: &'static str = "shellscript"
pub const SQL: &'static str = "sql"
pub const SWIFT: &'static str = "swift"
pub const TYPE_SCRIPT: &'static str = "typescript"
pub const TYPE_SCRIPT_REACT: &'static str = "typescriptreact"
pub const TE_X: &'static str = "tex"
pub const VISUAL_BASIC: &'static str = "vb"
pub const XML: &'static str = "xml"
pub const XSL: &'static str = "xsl"
pub const YAML: &'static str = "yaml"
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
impl Eq 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 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