#[non_exhaustive]
pub enum LangCode {
Show 184 variants Aa, Ab, Af, Ak, Sq, Am, Ar, An, Hy, As, Av, Ae, Ay, Az, Bm, Ba, Eu, Be, Bn, Bh, Bi, Bs, Br, Bg, My, Ca, Ch, Ce, Ny, Zh, Cv, Kw, Co, Cr, Hr, Cs, Da, Dv, Nl, Dz, En, Eo, Et, Ee, Fo, Fj, Fi, Fr, Ff, Gl, Ka, De, El, Gn, Gu, Ht, Ha, He, Hz, Hi, Ho, Hu, Ia, Id, Ie, Ga, Ig, Ik, Io, Is, It, Iu, Ja, Jv, Kl, Kn, Kr, Ks, Kk, Km, Ki, Rw, Ky, Kv, Kg, Ko, Ku, Kj, La, Lb, Lg, Li, Ln, Lo, Lt, Lu, Lv, Gv, Mk, Mg, Ms, Ml, Mt, Mi, Mr, Mh, Mn, Na, Nv, Nd, Ne, Ng, Nb, Nn, No, Ii, Nr, Oc, Oj, Cu, Om, Or, Os, Pa, Pi, Fa, Pl, Ps, Pt, Qu, Rm, Rn, Ro, Ru, Sa, Sc, Sd, Se, Sm, Sg, Sr, Gd, Sn, Si, Sk, Sl, So, St, Es, Su, Sw, Ss, Sv, Ta, Te, Tg, Th, Ti, Bo, Tk, Tl, Tn, To, Tr, Ts, Tt, Tw, Ty, Ug, Uk, Ur, Uz, Ve, Vi, Vo, Wa, Cy, Wo, Fy, Xh, Yi, Yo, Za, Zu,
}
Expand description
codeenum variantEnglish nameNative name
aaAa“Afar”“Afaraf”
abAb“Abkhaz”“аҧсуа бызшәа”
afAf“Afrikaans”“Afrikaans”
akAk“Akan”“Akan”
sqSq“Albanian”“Shqip”
amAm“Amharic”“አማርኛ”
arAr“Arabic”“العربية”
anAn“Aragonese”“aragonés”
hyHy“Armenian”“Հայերեն”
asAs“Assamese”“অসমীয়া”
avAv“Avaric”“авар мацӀ”
aeAe“Avestan”“avesta”
ayAy“Aymara”“aymar aru”
azAz“Azerbaijani”“azərbaycan dili”
bmBm“Bambara”“bamanankan”
baBa“Bashkir”“башҡорт теле”
euEu“Basque”“euskara”
beBe“Belarusian”“беларуская мова”
bnBn“Bengali”“বাংলা”
bhBh“Bihari”“भोजपुरी”
biBi“Bislama”“Bislama”
bsBs“Bosnian”“bosanski jezik”
brBr“Breton”“brezhoneg”
bgBg“Bulgarian”“български език”
myMy“Burmese”“ဗမာစာ”
caCa“Catalan”“català”
chCh“Chamorro”“Chamoru”
ceCe“Chechen”“нохчийн мотт”
nyNy“Chichewa”“chiCheŵa”
zhZh“Chinese”“中文”
cvCv“Chuvash”“чӑваш чӗлхи”
kwKw“Cornish”“Kernewek”
coCo“Corsican”“corsu”
crCr“Cree”“ᓀᐦᐃᔭᐍᐏᐣ”
hrHr“Croatian”“hrvatski jezik”
csCs“Czech”“čeština”
daDa“Danish”“dansk”
dvDv“Divehi”“ދިވެހި”
nlNl“Dutch”“Nederlands”
dzDz“Dzongkha”“རྫོང་ཁ”
enEn“English”“English”
eoEo“Esperanto”“Esperanto”
etEt“Estonian”“eesti”
eeEe“Ewe”“Eʋegbe”
foFo“Faroese”“føroyskt”
fjFj“Fijian”“vosa Vakaviti”
fiFi“Finnish”“suomi”
frFr“French”“français”
ffFf“Fula”“Fulfulde”
glGl“Galician”“galego”
kaKa“Georgian”“ქართული”
deDe“German”“Deutsch”
elEl“Greek”“ελληνικά”
gnGn“Guaran픓Avañe’ẽ”
guGu“Gujarati”“ગુજરાતી”
htHt“Haitian”“Kreyòl ayisyen”
haHa“Hausa”“(Hausa) هَوُسَ”
heHe“Hebrew”“עברית”
hzHz“Herero”“Otjiherero”
hiHi“Hindi”“हिन्दी”
hoHo“Hiri Motu”“Hiri Motu”
huHu“Hungarian”“magyar”
iaIa“Interlingua”“Interlingua”
idId“Indonesian”“Bahasa Indonesia”
ieIe“Interlingue”“Interlingue”
gaGa“Irish”“Gaeilge”
igIg“Igbo”“Asụsụ Igbo”
ikIk“Inupiaq”“Iñupiaq”
ioIo“Ido”“Ido”
isIs“Icelandic”“Íslenska”
itIt“Italian”“Italiano”
iuIu“Inuktitut”“ᐃᓄᒃᑎᑐᑦ”
jaJa“Japanese”“日本語 (にほんご)”
jvJv“Javanese”“ꦧꦱꦗꦮ”
klKl“Kalaallisut”“kalaallisut”
knKn“Kannada”“ಕನ್ನಡ”
krKr“Kanuri”“Kanuri”
ksKs“Kashmiri”“कश्मीरी”
kkKk“Kazakh”“қазақ тілі”
kmKm“Khmer”“ខ្មែរ”
kiKi“Kikuyu”“Gĩkũyũ”
rwRw“Kinyarwanda”“Ikinyarwanda”
kyKy“Kyrgyz”“Кыргызча”
kvKv“Komi”“коми кыв”
kgKg“Kongo”“Kikongo”
koKo“Korean”“한국어”
kuKu“Kurdish”“Kurdî”
kjKj“Kwanyama”“Kuanyama”
laLa“Latin”“lingua latina”
lbLb“Luxembourgish”“Lëtzebuergesch”
lgLg“Ganda”“Luganda”
liLi“Limburgish”“Limburgs”
lnLn“Lingala”“Lingála”
loLo“Lao”“ພາສາລາວ”
ltLt“Lithuanian”“lietuvių kalba”
luLu“Luba-Katanga”“Tshiluba”
lvLv“Latvian”“latviešu valoda”
gvGv“Manx”“Gaelg”
mkMk“Macedonian”“македонски јазик”
mgMg“Malagasy”“fiteny malagasy”
msMs“Malay”“bahasa Melayu”
mlMl“Malayalam”“മലയാളം”
mtMt“Maltese”“Malti”
miMi“Māori”“te reo Māori”
mrMr“Marathi”“मराठी”
mhMh“Marshallese”“Kajin M̧ajeļ”
mnMn“Mongolian”“Монгол хэл”
naNa“Nauruan”“Dorerin Naoero”
nvNv“Navajo”“Diné bizaad”
ndNd“Northern Ndebele”“isiNdebele”
neNe“Nepali”“नेपाली”
ngNg“Ndonga”“Owambo”
nbNb“Norwegian Bokmål”“Norsk bokmål”
nnNn“Norwegian Nynorsk”“Norsk nynorsk”
noNo“Norwegian”“Norsk”
iiIi“Nuosu”“ꆈꌠ꒿ Nuosuhxop”
nrNr“Southern Ndebele”“isiNdebele”
ocOc“Occitan”“occitan”
ojOj“Ojibwe”“ᐊᓂᔑᓈᐯᒧᐎᓐ”
cuCu“Old Church Slavonic”“ѩзыкъ словѣньскъ”
omOm“Oromo”“Afaan Oromoo”
orOr“Oriya”“ଓଡ଼ିଆ”
osOs“Ossetian”“ирон æвзаг”
paPa“Punjabi”“ਪੰਜਾਬੀ”
piPi“Pāli”“पाऴि”
faFa“Persian”“فارسی”
plPl“Polish”“język polski”
psPs“Pashto”“پښتو”
ptPt“Portuguese”“Português”
quQu“Quechua”“Runa Simi”
rmRm“Romansh”“rumantsch grischun”
rnRn“Kirundi”“Ikirundi”
roRo“Romanian”“Română”
ruRu“Russian”“Русский”
saSa“Sanskrit”“संस्कृतम्”
scSc“Sardinian”“sardu”
sdSd“Sindhi”“सिन्धी”
seSe“Northern Sami”“Davvisámegiella”
smSm“Samoan”“gagana fa’a Samoa”
sgSg“Sango”“yângâ tî sängö”
srSr“Serbian”“српски језик”
gdGd“Gaelic”“Gàidhlig”
snSn“Shona”“chiShona”
siSi“Sinhalese”“සිංහල”
skSk“Slovak”“slovenčina”
slSl“Slovene”“slovenski jezik”
soSo“Somali”“Soomaaliga”
stSt“Southern Sotho”“Sesotho”
esEs“Spanish”“Español”
suSu“Sundanese”“Basa Sunda”
swSw“Swahili”“Kiswahili”
ssSs“Swati”“SiSwati”
svSv“Swedish”“svenska”
taTa“Tamil”“தமிழ்”
teTe“Telugu”“తెలుగు”
tgTg“Tajik”“тоҷикӣ”
thTh“Thai”“ไทย”
tiTi“Tigrinya”“ትግርኛ”
boBo“Tibetan”“བོད་ཡིག”
tkTk“Turkmen”“Türkmen”
tlTl“Tagalog”“Wikang Tagalog”
tnTn“Tswana”“Setswana”
toTo“Tonga”“faka Tonga”
trTr“Turkish”“Türkçe”
tsTs“Tsonga”“Xitsonga”
ttTt“Tatar”“татар теле”
twTw“Twi”“Twi”
tyTy“Tahitian”“Reo Tahiti”
ugUg“Uyghur”“ئۇيغۇرچە‎”
ukUk“Ukrainian”“Українська”
urUr“Urdu”“اردو”
uzUz“Uzbek”“Oʻzbek”
veVe“Venda”“Tshivenḓa”
viVi“Vietnamese”“Tiếng Việt”
voVo“Volapük”“Volapük”
waWa“Walloon”“walon”
cyCy“Welsh”“Cymraeg”
woWo“Wolof”“Wollof”
fyFy“Western Frisian”“Frysk”
xhXh“Xhosa”“isiXhosa”
yiYi“Yiddish”“ייִדיש”
yoYo“Yoruba”“Yorùbá”
zaZa“Zhuang”“Saɯ cueŋƅ”
zuZu“Zulu”“isiZulu”

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Aa

“Afar”

Ab

“Abkhaz”

Af

“Afrikaans”

Ak

“Akan”

Sq

“Albanian”

Am

“Amharic”

Ar

“Arabic”

An

“Aragonese”

Hy

“Armenian”

As

“Assamese”

Av

“Avaric”

Ae

“Avestan”

Ay

“Aymara”

Az

“Azerbaijani”

Bm

“Bambara”

Ba

“Bashkir”

Eu

“Basque”

Be

“Belarusian”

Bn

“Bengali”

Bh

“Bihari”

Bi

“Bislama”

Bs

“Bosnian”

Br

“Breton”

Bg

“Bulgarian”

My

“Burmese”

Ca

“Catalan”

Ch

“Chamorro”

Ce

“Chechen”

Ny

“Chichewa”

Zh

“Chinese”

Cv

“Chuvash”

Kw

“Cornish”

Co

“Corsican”

Cr

“Cree”

Hr

“Croatian”

Cs

“Czech”

Da

“Danish”

Dv

“Divehi”

Nl

“Dutch”

Dz

“Dzongkha”

En

“English”

Eo

“Esperanto”

Et

“Estonian”

Ee

“Ewe”

Fo

“Faroese”

Fj

“Fijian”

Fi

“Finnish”

Fr

“French”

Ff

“Fula”

Gl

“Galician”

Ka

“Georgian”

De

“German”

El

“Greek”

Gn

“Guaraní”

Gu

“Gujarati”

Ht

“Haitian”

Ha

“Hausa”

He

“Hebrew”

Hz

“Herero”

Hi

“Hindi”

Ho

“Hiri Motu”

Hu

“Hungarian”

Ia

“Interlingua”

Id

“Indonesian”

Ie

“Interlingue”

Ga

“Irish”

Ig

“Igbo”

Ik

“Inupiaq”

Io

“Ido”

Is

“Icelandic”

It

“Italian”

Iu

“Inuktitut”

Ja

“Japanese”

Jv

“Javanese”

Kl

“Kalaallisut”

Kn

“Kannada”

Kr

“Kanuri”

Ks

“Kashmiri”

Kk

“Kazakh”

Km

“Khmer”

Ki

“Kikuyu”

Rw

“Kinyarwanda”

Ky

“Kyrgyz”

Kv

“Komi”

Kg

“Kongo”

Ko

“Korean”

Ku

“Kurdish”

Kj

“Kwanyama”

La

“Latin”

Lb

“Luxembourgish”

Lg

“Ganda”

Li

“Limburgish”

Ln

“Lingala”

Lo

“Lao”

Lt

“Lithuanian”

Lu

“Luba-Katanga”

Lv

“Latvian”

Gv

“Manx”

Mk

“Macedonian”

Mg

“Malagasy”

Ms

“Malay”

Ml

“Malayalam”

Mt

“Maltese”

Mi

“Māori”

Mr

“Marathi”

Mh

“Marshallese”

Mn

“Mongolian”

Na

“Nauruan”

Nv

“Navajo”

Nd

“Northern Ndebele”

Ne

“Nepali”

Ng

“Ndonga”

Nb

“Norwegian Bokmål”

Nn

“Norwegian Nynorsk”

No

“Norwegian”

Ii

“Nuosu”

Nr

“Southern Ndebele”

Oc

“Occitan”

Oj

“Ojibwe”

Cu

“Old Church Slavonic”

Om

“Oromo”

Or

“Oriya”

Os

“Ossetian”

Pa

“Punjabi”

Pi

“Pāli”

Fa

“Persian”

Pl

“Polish”

Ps

“Pashto”

Pt

“Portuguese”

Qu

“Quechua”

Rm

“Romansh”

Rn

“Kirundi”

Ro

“Romanian”

Ru

“Russian”

Sa

“Sanskrit”

Sc

“Sardinian”

Sd

“Sindhi”

Se

“Northern Sami”

Sm

“Samoan”

Sg

“Sango”

Sr

“Serbian”

Gd

“Gaelic”

Sn

“Shona”

Si

“Sinhalese”

Sk

“Slovak”

Sl

“Slovene”

So

“Somali”

St

“Southern Sotho”

Es

“Spanish”

Su

“Sundanese”

Sw

“Swahili”

Ss

“Swati”

Sv

“Swedish”

Ta

“Tamil”

Te

“Telugu”

Tg

“Tajik”

Th

“Thai”

Ti

“Tigrinya”

Bo

“Tibetan”

Tk

“Turkmen”

Tl

“Tagalog”

Tn

“Tswana”

To

“Tonga”

Tr

“Turkish”

Ts

“Tsonga”

Tt

“Tatar”

Tw

“Twi”

Ty

“Tahitian”

Ug

“Uyghur”

Uk

“Ukrainian”

Ur

“Urdu”

Uz

“Uzbek”

Ve

“Venda”

Vi

“Vietnamese”

Vo

“Volapük”

Wa

“Walloon”

Cy

“Welsh”

Wo

“Wolof”

Fy

“Western Frisian”

Xh

“Xhosa”

Yi

“Yiddish”

Yo

“Yoruba”

Za

“Zhuang”

Zu

“Zulu”

Implementations

A collection with all the values to iterate through them easily.

transforms the enum value to its lower case string representation.

let spanish = Es.as_str();
assert!(spanish == "es");

Returns the name of the language in english

let fr = Fr.english_name();
assert!(fr == "French");

Returns the name of the language in its native name.

let german = De.native_name();
assert!(german == "Deutsch");

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 language code value gets cached on construction, so it is ok to construct it multiple times.

if there is a config struct set, then the local_cache already has a closure for creating the value, so this one will get ignored.

The associated error to be returned if derivation fails.

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

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

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

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

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

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

The type returned in the event of a conversion error.

Performs the conversion.

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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Converts self into a collection.

The resulting type after obtaining ownership.

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

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more