Enum iso639_1::Iso639_1

source ·
pub enum Iso639_1 {
Show 184 variants Aa, Ab, Ae, Af, Ak, Am, An, Ar, As, Av, Ay, Az, Ba, Be, Bg, Bh, Bi, Bm, Bn, Bo, Br, Bs, Ca, Ce, Ch, Co, Cr, Cs, Cu, Cv, Cy, Da, De, Dv, Dz, Ee, El, En, Eo, Es, Et, Eu, Fa, Ff, Fi, Fj, Fo, Fr, Fy, Ga, Gd, Gl, Gn, Gu, Gv, Ha, He, Hi, Ho, Hr, Ht, Hu, Hy, Hz, Ia, Id, Ie, Ig, Ii, Ik, Io, Is, It, Iu, Ja, Jv, Ka, Kg, Ki, Kj, Kk, Kl, Km, Kn, Ko, Kr, Ks, Ku, Kv, Kw, Ky, La, Lb, Lg, Li, Ln, Lo, Lt, Lu, Lv, Mg, Mh, Mi, Mk, Ml, Mn, Mr, Ms, Mt, My, Na, Nb, Nd, Ne, Ng, Nl, Nn, No, Nr, Nv, Ny, Oc, Oj, Om, Or, Os, Pa, Pi, Pl, Ps, Pt, Qu, Rm, Rn, Ro, Ru, Rw, Sa, Sc, Sd, Se, Sg, Si, Sk, Sl, Sm, Sn, So, Sq, Sr, Ss, St, Su, Sv, Sw, Ta, Te, Tg, Th, Ti, Tk, Tl, Tn, To, Tr, Ts, Tt, Tw, Ty, Ug, Uk, Ur, Uz, Ve, Vi, Vo, Wa, Wo, Xh, Yi, Yo, Za, Zh, Zu,
}
Expand description

iso639-1 enum

Examples

extern crate iso639_1;
use iso639_1::Iso639_1;
fn main() {
    println!("{:?}", Iso639_1::En);
    assert!(Iso639_1::Fr != Iso639_1::En);
}

Variants§

§

Aa

639-2: aar, name: Afar (Afaraf)

§

Ab

639-2: abk, name: Abkhaz (аҧсуа бызшәа, аҧсшәа)

§

Ae

639-2: ave, name: Avestan (avesta)

§

Af

639-2: afr, name: Afrikaans

§

Ak

639-2: aka, name: Akan

§

Am

639-2: amh, name: Amharic (አማርኛ)

§

An

639-2: arg, name: Aragonese (aragonés)

§

Ar

639-2: ara, name: Arabic (العربية)

§

As

639-2: asm, name: Assamese (অসমীয়া)

§

Av

639-2: ava, name: Avaric (авар мацӀ, магӀарул мацӀ)

§

Ay

639-2: aym, name: Aymara (aymar aru)

§

Az

639-2: aze, name: Azerbaijani (azərbaycan dili)

§

Ba

639-2: bak, name: Bashkir (башҡорт теле)

§

Be

639-2: bel, name: Belarusian (беларуская мова)

§

Bg

639-2: bul, name: Bulgarian (български език)

§

Bh

639-2: bih, name: Bihari (भोजपुरी)

§

Bi

639-2: bis, name: Bislama

§

Bm

639-2: bam, name: Bambara (bamanankan)

§

Bn

639-2: ben, name: Bengali, Bangla (বাংলা)

§

Bo

639-2: bod, name: Tibetan Standard, Tibetan, Central (བོད་ཡིག)

§

Br

639-2: bre, name: Breton (brezhoneg)

§

Bs

639-2: bos, name: Bosnian (bosanski jezik)

§

Ca

639-2: cat, name: Catalan (català)

§

Ce

639-2: che, name: Chechen (нохчийн мотт)

§

Ch

639-2: cha, name: Chamorro (Chamoru)

§

Co

639-2: cos, name: Corsican (corsu, lingua corsa)

§

Cr

639-2: cre, name: Cree (ᓀᐦᐃᔭᐍᐏᐣ)

§

Cs

639-2: ces, name: Czech (čeština, český jazyk)

§

Cu

639-2: chu, name: Old Church Slavonic, Church Slavonic, Old Bulgarian (ѩзыкъ словѣньскъ)

§

Cv

639-2: chv, name: Chuvash (чӑваш чӗлхи)

§

Cy

639-2: cym, name: Welsh (Cymraeg)

§

Da

639-2: dan, name: Danish (dansk)

§

De

639-2: deu, name: German (Deutsch)

§

Dv

639-2: div, name: Divehi, Dhivehi, Maldivian (ދިވެހި)

§

Dz

639-2: dzo, name: Dzongkha (རྫོང་ཁ)

§

Ee

639-2: ewe, name: Ewe (Eʋegbe)

§

El

639-2: ell, name: Greek (modern) (ελληνικά)

§

En

639-2: eng, name: English

§

Eo

639-2: epo, name: Esperanto

§

Es

639-2: spa, name: Spanish (Español)

§

Et

639-2: est, name: Estonian (eesti, eesti keel)

§

Eu

639-2: eus, name: Basque (euskara, euskera)

§

Fa

639-2: fas, name: Persian (Farsi) (فارسی)

§

Ff

639-2: ful, name: Fula, Fulah, Pulaar, Pular (Fulfulde, Pulaar, Pular)

§

Fi

639-2: fin, name: Finnish (suomi, suomen kieli)

§

Fj

639-2: fij, name: Fijian (vosa Vakaviti)

§

Fo

639-2: fao, name: Faroese (føroyskt)

§

Fr

639-2: fra, name: French (français, langue française)

§

Fy

639-2: fry, name: Western Frisian (Frysk)

§

Ga

639-2: gle, name: Irish (Gaeilge)

§

Gd

639-2: gla, name: Scottish Gaelic, Gaelic (Gàidhlig)

§

Gl

639-2: glg, name: Galician (galego)

§

Gn

639-2: grn, name: Guaraní (Avañe’ẽ)

§

Gu

639-2: guj, name: Gujarati (ગુજરાતી)

§

Gv

639-2: glv, name: Manx (Gaelg, Gailck)

§

Ha

639-2: hau, name: Hausa ((Hausa) هَوُسَ)

§

He

639-2: heb, name: Hebrew (modern) (עברית)

§

Hi

639-2: hin, name: Hindi (हिन्दी, हिंदी)

§

Ho

639-2: hmo, name: Hiri Motu

§

Hr

639-2: hrv, name: Croatian (hrvatski jezik)

§

Ht

639-2: hat, name: Haitian, Haitian Creole (Kreyòl ayisyen)

§

Hu

639-2: hun, name: Hungarian (magyar)

§

Hy

639-2: hye, name: Armenian (Հայերեն)

§

Hz

639-2: her, name: Herero (Otjiherero)

§

Ia

639-2: ina, name: Interlingua

§

Id

639-2: ind, name: Indonesian (Bahasa Indonesia)

§

Ie

639-2: ile, name: Interlingue (Originally called Occidental; then Interlingue after WWII)

§

Ig

639-2: ibo, name: Igbo (Asụsụ Igbo)

§

Ii

639-2: iii, name: Nuosu (ꆈꌠ꒿ Nuosuhxop)

§

Ik

639-2: ipk, name: Inupiaq (Iñupiaq, Iñupiatun)

§

Io

639-2: ido, name: Ido

§

Is

639-2: isl, name: Icelandic (Íslenska)

§

It

639-2: ita, name: Italian (Italiano)

§

Iu

639-2: iku, name: Inuktitut (ᐃᓄᒃᑎᑐᑦ)

§

Ja

639-2: jpn, name: Japanese (日本語 (にほんご))

§

Jv

639-2: jav, name: Javanese (ꦧꦱꦗꦮ, Basa Jawa)

§

Ka

639-2: kat, name: Georgian (ქართული)

§

Kg

639-2: kon, name: Kongo (Kikongo)

§

Ki

639-2: kik, name: Kikuyu, Gikuyu (Gĩkũyũ)

§

Kj

639-2: kua, name: Kwanyama, Kuanyama (Kuanyama)

§

Kk

639-2: kaz, name: Kazakh (қазақ тілі)

§

Kl

639-2: kal, name: Kalaallisut, Greenlandic (kalaallisut, kalaallit oqaasii)

§

Km

639-2: khm, name: Khmer (ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ)

§

Kn

639-2: kan, name: Kannada (ಕನ್ನಡ)

§

Ko

639-2: kor, name: Korean (한국어)

§

Kr

639-2: kau, name: Kanuri

§

Ks

639-2: kas, name: Kashmiri (कश्मीरी, كشميري‎)

§

Ku

639-2: kur, name: Kurdish (Kurdî, كوردی‎)

§

Kv

639-2: kom, name: Komi (коми кыв)

§

Kw

639-2: cor, name: Cornish (Kernewek)

§

Ky

639-2: kir, name: Kyrgyz (Кыргызча, Кыргыз тили)

§

La

639-2: lat, name: Latin (latine, lingua latina)

§

Lb

639-2: ltz, name: Luxembourgish, Letzeburgesch (Lëtzebuergesch)

§

Lg

639-2: lug, name: Ganda (Luganda)

§

Li

639-2: lim, name: Limburgish, Limburgan, Limburger (Limburgs)

§

Ln

639-2: lin, name: Lingala (Lingála)

§

Lo

639-2: lao, name: Lao (ພາສາລາວ)

§

Lt

639-2: lit, name: Lithuanian (lietuvių kalba)

§

Lu

639-2: lub, name: Luba-Katanga (Tshiluba)

§

Lv

639-2: lav, name: Latvian (latviešu valoda)

§

Mg

639-2: mlg, name: Malagasy (fiteny malagasy)

§

Mh

639-2: mah, name: Marshallese (Kajin M̧ajeļ)

§

Mi

639-2: mri, name: Māori (te reo Māori)

§

Mk

639-2: mkd, name: Macedonian (македонски јазик)

§

Ml

639-2: mal, name: Malayalam (മലയാളം)

§

Mn

639-2: mon, name: Mongolian (Монгол хэл)

§

Mr

639-2: mar, name: Marathi (Marāṭhī) (मराठी)

§

Ms

639-2: msa, name: Malay (bahasa Melayu, بهاس ملايو‎)

§

Mt

639-2: mlt, name: Maltese (Malti)

§

My

639-2: mya, name: Burmese (ဗမာစာ)

§

Na

639-2: nau, name: Nauruan (Dorerin Naoero)

§

Nb

639-2: nob, name: Norwegian Bokmål (Norsk bokmål)

§

Nd

639-2: nde, name: Northern Ndebele (isiNdebele)

§

Ne

639-2: nep, name: Nepali (नेपाली)

§

Ng

639-2: ndo, name: Ndonga (Owambo)

§

Nl

639-2: nld, name: Dutch (Nederlands, Vlaams)

§

Nn

639-2: nno, name: Norwegian Nynorsk (Norsk nynorsk)

§

No

639-2: nor, name: Norwegian (Norsk)

§

Nr

639-2: nbl, name: Southern Ndebele (isiNdebele)

§

Nv

639-2: nav, name: Navajo, Navaho (Diné bizaad)

§

Ny

639-2: nya, name: Chichewa, Chewa, Nyanja (chiCheŵa, chinyanja)

§

Oc

639-2: oci, name: Occitan (occitan, lenga d’òc)

§

Oj

639-2: oji, name: Ojibwe, Ojibwa (ᐊᓂᔑᓈᐯᒧᐎᓐ)

§

Om

639-2: orm, name: Oromo (Afaan Oromoo)

§

Or

639-2: ori, name: Oriya (ଓଡ଼ିଆ)

§

Os

639-2: oss, name: Ossetian, Ossetic (ирон æвзаг)

§

Pa

639-2: pan, name: (Eastern) Punjabi (ਪੰਜਾਬੀ)

§

Pi

639-2: pli, name: Pāli (पाऴि)

§

Pl

639-2: pol, name: Polish (język polski, polszczyzna)

§

Ps

639-2: pus, name: Pashto, Pushto (پښتو)

§

Pt

639-2: por, name: Portuguese (Português)

§

Qu

639-2: que, name: Quechua (Runa Simi, Kichwa)

§

Rm

639-2: roh, name: Romansh (rumantsch grischun)

§

Rn

639-2: run, name: Kirundi (Ikirundi)

§

Ro

639-2: ron, name: Romanian (Română)

§

Ru

639-2: rus, name: Russian (Русский)

§

Rw

639-2: kin, name: Kinyarwanda (Ikinyarwanda)

§

Sa

639-2: san, name: Sanskrit (Saṁskṛta) (संस्कृतम्)

§

Sc

639-2: srd, name: Sardinian (sardu)

§

Sd

639-2: snd, name: Sindhi (सिन्धी, سنڌي، سندھی‎)

§

Se

639-2: sme, name: Northern Sami (Davvisámegiella)

§

Sg

639-2: sag, name: Sango (yângâ tî sängö)

§

Si

639-2: sin, name: Sinhalese, Sinhala (සිංහල)

§

Sk

639-2: slk, name: Slovak (slovenčina, slovenský jazyk)

§

Sl

639-2: slv, name: Slovene (slovenski jezik, slovenščina)

§

Sm

639-2: smo, name: Samoan (gagana fa’a Samoa)

§

Sn

639-2: sna, name: Shona (chiShona)

§

So

639-2: som, name: Somali (Soomaaliga, af Soomaali)

§

Sq

639-2: sqi, name: Albanian (Shqip)

§

Sr

639-2: srp, name: Serbian (српски језик)

§

Ss

639-2: ssw, name: Swati (SiSwati)

§

St

639-2: sot, name: Southern Sotho (Sesotho)

§

Su

639-2: sun, name: Sundanese (Basa Sunda)

§

Sv

639-2: swe, name: Swedish (svenska)

§

Sw

639-2: swa, name: Swahili (Kiswahili)

§

Ta

639-2: tam, name: Tamil (தமிழ்)

§

Te

639-2: tel, name: Telugu (తెలుగు)

§

Tg

639-2: tgk, name: Tajik (тоҷикӣ, toçikī, تاجیکی‎)

§

Th

639-2: tha, name: Thai (ไทย)

§

Ti

639-2: tir, name: Tigrinya (ትግርኛ)

§

Tk

639-2: tuk, name: Turkmen (Türkmen, Түркмен)

§

Tl

639-2: tgl, name: Tagalog (Wikang Tagalog)

§

Tn

639-2: tsn, name: Tswana (Setswana)

§

To

639-2: ton, name: Tonga (Tonga Islands) (faka Tonga)

§

Tr

639-2: tur, name: Turkish (Türkçe)

§

Ts

639-2: tso, name: Tsonga (Xitsonga)

§

Tt

639-2: tat, name: Tatar (татар теле, tatar tele)

§

Tw

639-2: twi, name: Twi

§

Ty

639-2: tah, name: Tahitian (Reo Tahiti)

§

Ug

639-2: uig, name: Uyghur (ئۇيغۇرچە‎, Uyghurche)

§

Uk

639-2: ukr, name: Ukrainian (Українська)

§

Ur

639-2: urd, name: Urdu (اردو)

§

Uz

639-2: uzb, name: Uzbek (Oʻzbek, Ўзбек, أۇزبېك‎)

§

Ve

639-2: ven, name: Venda (Tshivenḓa)

§

Vi

639-2: vie, name: Vietnamese (Tiếng Việt)

§

Vo

639-2: vol, name: Volapük

§

Wa

639-2: wln, name: Walloon (walon)

§

Wo

639-2: wol, name: Wolof (Wollof)

§

Xh

639-2: xho, name: Xhosa (isiXhosa)

§

Yi

639-2: yid, name: Yiddish (ייִדיש)

§

Yo

639-2: yor, name: Yoruba (Yorùbá)

§

Za

639-2: zha, name: Zhuang, Chuang (Saɯ cueŋƅ, Saw cuengh)

§

Zh

639-2: zho, name: Chinese (中文 (Zhōngwén), 汉语, 漢語)

§

Zu

639-2: zul, name: Zulu (isiZulu)

Implementations§

source§

impl Iso639_1

source

pub fn name(&self) -> &str

Returns the two letters string name.

Examples
use iso639_1::Iso639_1;

fn main() {
    assert_eq!(Iso639_1::Fr.name(), "fr");
}

Trait Implementations§

source§

impl Clone for Iso639_1

source§

fn clone(&self) -> Iso639_1

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Iso639_1

source§

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

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

impl Hash for Iso639_1

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 Ord for Iso639_1

source§

fn cmp(&self, other: &Iso639_1) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Iso639_1

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Iso639_1

source§

fn partial_cmp(&self, other: &Iso639_1) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<&str> for Iso639_1

source§

fn try_from(language: &str) -> Result<Self, Self::Error>

Attempts to find a language for an ISO639v1 language code.

Examples
use iso639_1::Iso639_1;
use std::convert::TryFrom;

fn main() {
    let lang = Iso639_1::try_from("fr").unwrap();
    assert_eq!(lang, Iso639_1::Fr);
}
§

type Error = Iso639v1Error

The type returned in the event of a conversion error.
source§

impl Copy for Iso639_1

source§

impl Eq for Iso639_1

source§

impl StructuralEq for Iso639_1

source§

impl StructuralPartialEq for Iso639_1

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.