Skip to main content

Lang

Enum Lang 

Source
#[non_exhaustive]
pub enum Lang {
Show 184 variants En, 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, 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

Language codes following ISO 639-1 standard (two-letter codes). Default is En (English)

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.
§

En

English (default)

§

Aa

Afar

§

Ab

Abkhazian

§

Ae

Avestan

§

Af

Afrikaans

§

Ak

Akan

§

Am

Amharic

§

An

Aragonese

§

Ar

Arabic

§

As

Assamese

§

Av

Avaric

§

Ay

Aymara

§

Az

Azerbaijani

§

Ba

Bashkir

§

Be

Belarusian

§

Bg

Bulgarian

§

Bh

Bihari languages

§

Bi

Bislama

§

Bm

Bambara

§

Bn

Bengali

§

Bo

Tibetan

§

Br

Breton

§

Bs

Bosnian

§

Ca

Catalan

§

Ce

Chechen

§

Ch

Chamorro

§

Co

Corsican

§

Cr

Cree

§

Cs

Czech

§

Cu

Church Slavic

§

Cv

Chuvash

§

Cy

Welsh

§

Da

Danish

§

De

German

§

Dv

Divehi

§

Dz

Dzongkha

§

Ee

Ewe

§

El

Greek

§

Eo

Esperanto

§

Es

Spanish

§

Et

Estonian

§

Eu

Basque

§

Fa

Persian

§

Ff

Fulah

§

Fi

Finnish

§

Fj

Fijian

§

Fo

Faroese

§

Fr

French

§

Fy

Western Frisian

§

Ga

Irish

§

Gd

Scottish Gaelic

§

Gl

Galician

§

Gn

Guarani

§

Gu

Gujarati

§

Gv

Manx

§

Ha

Hausa

§

He

Hebrew

§

Hi

Hindi

§

Ho

Hiri Motu

§

Hr

Croatian

§

Ht

Haitian Creole

§

Hu

Hungarian

§

Hy

Armenian

§

Hz

Herero

§

Ia

Interlingua

§

Id

Indonesian

§

Ie

Interlingue

§

Ig

Igbo

§

Ii

Sichuan Yi

§

Ik

Inupiaq

§

Io

Ido

§

Is

Icelandic

§

It

Italian

§

Iu

Inuktitut

§

Ja

Japanese

§

Jv

Javanese

§

Ka

Georgian

§

Kg

Kongo

§

Ki

Kikuyu

§

Kj

Kuanyama

§

Kk

Kazakh

§

Kl

Greenlandic

§

Km

Khmer

§

Kn

Kannada

§

Ko

Korean

§

Kr

Kanuri

§

Ks

Kashmiri

§

Ku

Kurdish

§

Kv

Komi

§

Kw

Cornish

§

Ky

Kyrgyz

§

La

Latin

§

Lb

Luxembourgish

§

Lg

Ganda

§

Li

Limburgish

§

Ln

Lingala

§

Lo

Lao

§

Lt

Lithuanian

§

Lu

Luba-Katanga

§

Lv

Latvian

§

Mg

Malagasy

§

Mh

Marshallese

§

Mi

Maori

§

Mk

Macedonian

§

Ml

Malayalam

§

Mn

Mongolian

§

Mr

Marathi

§

Ms

Malay

§

Mt

Maltese

§

My

Burmese

§

Na

Nauru

§

Nb

Norwegian Bokmål

§

Nd

North Ndebele

§

Ne

Nepali

§

Ng

Ndonga

§

Nl

Dutch

§

Nn

Norwegian Nynorsk

§

No

Norwegian

§

Nr

South Ndebele

§

Nv

Navajo

§

Ny

Chichewa

§

Oc

Occitan

§

Oj

Ojibwa

§

Om

Oromo

§

Or

Oriya

§

Os

Ossetian

§

Pa

Punjabi

§

Pi

Pali

§

Pl

Polish

§

Ps

Pashto

§

Pt

Portuguese

§

Qu

Quechua

§

Rm

Romansh

§

Rn

Rundi

§

Ro

Romanian

§

Ru

Russian

§

Rw

Kinyarwanda

§

Sa

Sanskrit

§

Sc

Sardinian

§

Sd

Sindhi

§

Se

Northern Sami

§

Sg

Sango

§

Si

Sinhala

§

Sk

Slovak

§

Sl

Slovenian

§

Sm

Samoan

§

Sn

Shona

§

So

Somali

§

Sq

Albanian

§

Sr

Serbian

§

Ss

Swati

§

St

Southern Sotho

§

Su

Sundanese

§

Sv

Swedish

§

Sw

Swahili

§

Ta

Tamil

§

Te

Telugu

§

Tg

Tajik

§

Th

Thai

§

Ti

Tigrinya

§

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

§

Wo

Wolof

§

Xh

Xhosa

§

Yi

Yiddish

§

Yo

Yoruba

§

Za

Zhuang

§

Zh

Chinese

§

Zu

Zulu

Trait Implementations§

Source§

impl Clone for Lang

Source§

fn clone(&self) -> Lang

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Lang

Source§

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

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

impl Default for Lang

Source§

fn default() -> Lang

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Lang

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Lang

Source§

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

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

impl Hash for Lang

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 Lang

Source§

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

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

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

impl PartialEq for Lang

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Lang

Source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for Lang

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Tsify for Lang

Source§

const DECL: &'static str = "/**\n * Language codes following ISO 639-1 standard (two-letter codes).\n * Default is En (English)\n */\nexport type Lang = \"En\" | \"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\" | \"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\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

fn into_js(&self) -> Result<Self::JsType, Error>
where Self: Serialize,

Source§

fn from_js<T>(js: T) -> Result<Self, Error>
where T: Into<JsValue>, Self: DeserializeOwned,

Source§

impl Copy for Lang

Source§

impl Eq for Lang

Source§

impl StructuralPartialEq for Lang

Auto Trait Implementations§

§

impl Freeze for Lang

§

impl RefUnwindSafe for Lang

§

impl Send for Lang

§

impl Sync for Lang

§

impl Unpin for Lang

§

impl UnsafeUnpin for Lang

§

impl UnwindSafe for Lang

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,