[][src]Enum rust_code_analysis::LANG

pub enum LANG {
    Mozjs,
    Javascript,
    Java,
    Go,
    Html,
    CSharp,
    Rust,
    Css,
    Cpp,
    Python,
    Tsx,
    Typescript,
    Ccomment,
    Preproc,
}

The list of supported languages.

Variants

Mozjs

The Mozjs language is variant of the JavaScript language

Javascript

The JavaScript language

Java

The Java language

Go

The Go language

Html

The HTML language

CSharp

The C# language

Rust

The Rust language

Css

The CSS language

Cpp

The C/C++ language

Python

The Python language

Tsx

The Tsx language incorporates the JSX syntax inside TypeScript

Typescript

The TypeScript language

Ccomment

The Ccomment language is a variant of the C language focused on comments

Preproc

The PreProc language is a variant of the C/C++ language focused on macros

Implementations

impl LANG[src]

pub fn get_name(&self) -> &'static str[src]

Returns the name of a language as a &str.

Examples

use rust_code_analysis::LANG;

println!("{}", LANG::Rust.get_name());

Trait Implementations

impl Clone for LANG[src]

impl Copy for LANG[src]

impl Debug for LANG[src]

impl IntoEnumIterator for LANG[src]

type Iterator = LANGEnumIterator

Type of the iterator over the variants.

impl PartialEq<LANG> for LANG[src]

impl StructuralPartialEq for LANG[src]

Auto Trait Implementations

impl RefUnwindSafe for LANG

impl Send for LANG

impl Sync for LANG

impl Unpin for LANG

impl UnwindSafe for LANG

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.