[][src]Enum whatlang::Lang

pub enum Lang {
    Aka,
    Amh,
    Arb,
    Azj,
    Bel,
    Ben,
    Bho,
    Bul,
    Ceb,
    Ces,
    Cmn,
    Dan,
    Deu,
    Ell,
    Eng,
    Epo,
    Est,
    Fin,
    Fra,
    Guj,
    Hat,
    Hau,
    Heb,
    Hin,
    Hrv,
    Hun,
    Ibo,
    Ilo,
    Ind,
    Ita,
    Jav,
    Jpn,
    Kan,
    Kat,
    Khm,
    Kin,
    Kor,
    Kur,
    Lav,
    Lit,
    Mai,
    Mal,
    Mar,
    Mkd,
    Mlg,
    Mya,
    Nep,
    Nld,
    Nno,
    Nob,
    Nya,
    Ori,
    Orm,
    Pan,
    Pes,
    Pol,
    Por,
    Ron,
    Run,
    Rus,
    Sin,
    Skr,
    Slv,
    Sna,
    Som,
    Spa,
    Srp,
    Swe,
    Tam,
    Tel,
    Tgl,
    Tha,
    Tir,
    Tuk,
    Tur,
    Uig,
    Ukr,
    Urd,
    Uzb,
    Vie,
    Ydd,
    Yor,
    Zul,
}

Represents a language following ISO 639-3 standard.

Variants

Akan (Akan)

አማርኛ (Amharic)

العربية (Arabic)

Azərbaycanca (Azerbaijani)

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

বাংলা (Bengali)

भोजपुरी (Bhojpuri)

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

Cebuano (Cebuano)

Čeština (Czech)

官话 (Mandarin)

Dansk (Danish)

Deutsch (German)

Ελληνικά (Greek)

English (English)

Esperanto (Esperanto)

Eesti (Estonian)

Suomi (Finnish)

Français (French)

ગુજરાતી (Gujarati)

Kreyòl ayisyen (Haitian Creole)

Hausa (Hausa)

עברית (Hebrew)

हिन्दी (Hindi)

Hrvatski (Croatian)

Magyar (Hungarian)

Igbo (Igbo)

Ilokano (Ilocano)

Bahasa Indonesia (Indonesian)

Italiano (Italian)

Basa Jawa (Javanese)

日本語 (Japanese)

ಕನ್ನಡ (Kannada)

ქართული (Georgian)

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

Kinyarwanda (Kinyarwanda)

한국어 (Korean)

Kurdî (Kurdish)

Latviešu (Latvian)

Lietuvių (Lithuanian)

मैथिली (Maithili)

മലയാളം (Malayalam)

मराठी (Marathi)

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

Malagasy (Malagasy)

မြန်မာစာ (Burmese)

नेपाली (Nepali)

Nederlands (Dutch)

Nynorsk (Nynorsk)

Bokmål (Bokmal)

Chichewa (Chewa)

ଓଡ଼ିଆ (Oriya)

Oromoo (Oromo)

ਪੰਜਾਬੀ (Punjabi)

فارسی (Persian)

Polski (Polish)

Português (Portuguese)

Română (Romanian)

Ikirundi (Rundi)

Русский (Russian)

සිංහල (Sinhalese)

سرائیکی (Saraiki)

Slovenščina (Slovene)

ChiShona (Shona)

Soomaaliga (Somali)

Español (Spanish)

Српски (Serbian)

Svenska (Swedish)

தமிழ் (Tamil)

తెలుగు (Telugu)

Tagalog (Tagalog)

ภาษาไทย (Thai)

ትግርኛ (Tigrinya)

Türkmençe (Turkmen)

Türkçe (Turkish)

ئۇيغۇرچە (Uyghur)

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

اُردُو (Urdu)

Oʻzbekcha (Uzbek)

Tiếng Việt (Vietnamese)

ייִדיש (Yiddish)

Yorùbá (Yoruba)

IsiZulu (Zulu)

Methods

impl Lang
[src]

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");

Trait Implementations

impl PartialEq<Lang> for Lang
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Lang
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Lang
[src]

impl Eq for Lang
[src]

impl Debug for Lang
[src]

Formats the value using the given formatter. Read more

impl Display for Lang
[src]

Formats the value using the given formatter. Read more

impl Hash for Lang
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Lang

impl Sync for Lang

Blanket Implementations

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

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more