Skip to main content

LanguageKind

Struct LanguageKind 

Source
pub struct LanguageKind(pub String);
Expand description

Predefined Language kinds @since 3.18.0

Tuple Fields§

§0: String

Implementations§

Source§

impl LanguageKind

Source

pub const ABAP: &'static str = "abap"

Source

pub const WINDOWS_BAT: &'static str = "bat"

Source

pub const BIB_TE_X: &'static str = "bibtex"

Source

pub const CLOJURE: &'static str = "clojure"

Source

pub const COFFEESCRIPT: &'static str = "coffeescript"

Source

pub const C: &'static str = "c"

Source

pub const CPP: &'static str = "cpp"

Source

pub const C_SHARP: &'static str = "csharp"

Source

pub const CSS: &'static str = "css"

Source

pub const D: &'static str = "d"

Source

pub const DELPHI: &'static str = "pascal"

Source

pub const DIFF: &'static str = "diff"

Source

pub const DART: &'static str = "dart"

Source

pub const DOCKERFILE: &'static str = "dockerfile"

Source

pub const ELIXIR: &'static str = "elixir"

Source

pub const ERLANG: &'static str = "erlang"

Source

pub const F_SHARP: &'static str = "fsharp"

Source

pub const GIT_COMMIT: &'static str = "git-commit"

Source

pub const GIT_REBASE: &'static str = "git-rebase"

Source

pub const GO: &'static str = "go"

Source

pub const GROOVY: &'static str = "groovy"

Source

pub const HANDLEBARS: &'static str = "handlebars"

Source

pub const HASKELL: &'static str = "haskell"

Source

pub const HTML: &'static str = "html"

Source

pub const INI: &'static str = "ini"

Source

pub const JAVA: &'static str = "java"

Source

pub const JAVA_SCRIPT: &'static str = "javascript"

Source

pub const JAVA_SCRIPT_REACT: &'static str = "javascriptreact"

Source

pub const JSON: &'static str = "json"

Source

pub const LA_TE_X: &'static str = "latex"

Source

pub const LESS: &'static str = "less"

Source

pub const LUA: &'static str = "lua"

Source

pub const MAKEFILE: &'static str = "makefile"

Source

pub const MARKDOWN: &'static str = "markdown"

Source

pub const OBJECTIVE_C: &'static str = "objective-c"

Source

pub const OBJECTIVE_CPP: &'static str = "objective-cpp"

Source

pub const PASCAL: &'static str = "pascal"

Source

pub const PERL: &'static str = "perl"

Source

pub const PERL6: &'static str = "perl6"

Source

pub const PHP: &'static str = "php"

Source

pub const PLAINTEXT: &'static str = "plaintext"

Source

pub const POWERSHELL: &'static str = "powershell"

Source

pub const PUG: &'static str = "jade"

Source

pub const PYTHON: &'static str = "python"

Source

pub const R: &'static str = "r"

Source

pub const RAZOR: &'static str = "razor"

Source

pub const RUBY: &'static str = "ruby"

Source

pub const RUST: &'static str = "rust"

Source

pub const SCSS: &'static str = "scss"

Source

pub const SASS: &'static str = "sass"

Source

pub const SCALA: &'static str = "scala"

Source

pub const SHADER_LAB: &'static str = "shaderlab"

Source

pub const SHELL_SCRIPT: &'static str = "shellscript"

Source

pub const SQL: &'static str = "sql"

Source

pub const SWIFT: &'static str = "swift"

Source

pub const TYPE_SCRIPT: &'static str = "typescript"

Source

pub const TYPE_SCRIPT_REACT: &'static str = "typescriptreact"

Source

pub const TE_X: &'static str = "tex"

Source

pub const VISUAL_BASIC: &'static str = "vb"

Source

pub const XML: &'static str = "xml"

Source

pub const XSL: &'static str = "xsl"

Source

pub const YAML: &'static str = "yaml"

Trait Implementations§

Source§

impl Clone for LanguageKind

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for LanguageKind

Source§

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

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

impl<'de> Deserialize<'de> for LanguageKind

Source§

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 Eq for LanguageKind

Source§

impl Hash for LanguageKind

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 LanguageKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for LanguageKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for LanguageKind

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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,

Source§

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>,

Source§

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>,

Source§

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.