pub enum Lang {
Show 69 variants Epo, Eng, Rus, Cmn, Spa, Por, Ita, Ben, Fra, Deu, Ukr, Kat, Ara, Hin, Jpn, Heb, Yid, Pol, Amh, Jav, Kor, Nob, Dan, Swe, Fin, Tur, Nld, Hun, Ces, Ell, Bul, Bel, Mar, Kan, Ron, Slv, Hrv, Srp, Mkd, Lit, Lav, Est, Tam, Vie, Urd, Tha, Guj, Uzb, Pan, Aze, Ind, Tel, Pes, Mal, Ori, Mya, Nep, Sin, Khm, Tuk, Aka, Zul, Sna, Afr, Lat, Slk, Cat, Tgl, Hye,
}
Expand description

Represents a language following ISO 639-3 standard.

Variants

Epo

Esperanto (Esperanto)

Eng

English (English)

Rus

Русский (Russian)

Cmn

普通话 (Mandarin)

Spa

Español (Spanish)

Por

Português (Portuguese)

Ita

Italiano (Italian)

Ben

বাংলা (Bengali)

Fra

Français (French)

Deu

Deutsch (German)

Ukr

Українська (Ukrainian)

Kat

ქართული (Georgian)

Ara

العربية (Arabic)

Hin

हिन्दी (Hindi)

Jpn

日本語 (Japanese)

Heb

עברית (Hebrew)

Yid

ייִדיש (Yiddish)

Pol

Polski (Polish)

Amh

አማርኛ (Amharic)

Jav

Basa Jawa (Javanese)

Kor

한국어 (Korean)

Nob

Bokmål (Bokmal)

Dan

Dansk (Danish)

Swe

Svenska (Swedish)

Fin

Suomi (Finnish)

Tur

Türkçe (Turkish)

Nld

Nederlands (Dutch)

Hun

Magyar (Hungarian)

Ces

Čeština (Czech)

Ell

Ελληνικά (Greek)

Bul

Български (Bulgarian)

Bel

Беларуская (Belarusian)

Mar

मराठी (Marathi)

Kan

ಕನ್ನಡ (Kannada)

Ron

Română (Romanian)

Slv

Slovenščina (Slovene)

Hrv

Hrvatski (Croatian)

Srp

Српски (Serbian)

Mkd

Македонски (Macedonian)

Lit

Lietuvių (Lithuanian)

Lav

Latviešu (Latvian)

Est

Eesti (Estonian)

Tam

தமிழ் (Tamil)

Vie

Tiếng Việt (Vietnamese)

Urd

اُردُو (Urdu)

Tha

ภาษาไทย (Thai)

Guj

ગુજરાતી (Gujarati)

Uzb

Oʻzbekcha (Uzbek)

Pan

ਪੰਜਾਬੀ (Punjabi)

Aze

Azərbaycanca (Azerbaijani)

Ind

Bahasa Indonesia (Indonesian)

Tel

తెలుగు (Telugu)

Pes

فارسی (Persian)

Mal

മലയാളം (Malayalam)

Ori

ଓଡ଼ିଆ (Oriya)

Mya

မြန်မာစာ (Burmese)

Nep

नेपाली (Nepali)

Sin

සිංහල (Sinhalese)

Khm

ភាសាខ្មែរ (Khmer)

Tuk

Türkmençe (Turkmen)

Aka

Akan (Akan)

Zul

IsiZulu (Zulu)

Sna

ChiShona (Shona)

Afr

Afrikaans (Afrikaans)

Lat

Lingua Latina (Latin)

Slk

Slovenčina (Slovak)

Cat

Català (Catalan)

Tgl

Tagalog (Tagalog)

Hye

Հայերեն (Armenian)

Implementations

Get enum by ISO 639-3 code as a string.

Example
use whatlang::Lang;
assert_eq!(Lang::from_code("ukr"), Some(Lang::Ukr));

Convert enum into ISO 639-3 code as a string.

Example
use whatlang::Lang;
assert_eq!(Lang::Ukr.code(), "ukr");

Get a language name in the language itself.

Example
use whatlang::Lang;
assert_eq!(Lang::Ukr.name(), "Українська");

Get a human readable name of the language in English.

Example
use whatlang::Lang;
assert_eq!(Lang::Deu.eng_name(), "German");

Get all existing languages.

Example
use whatlang::Lang;
for lang in Lang::all() {
    println!("{}", lang);
}

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.