Enum lingua::IsoCode639_1

source ·
pub enum IsoCode639_1 {
Show 75 variants AF, AR, AZ, BE, BG, BN, BS, CA, CS, CY, DA, DE, EL, EN, EO, ES, ET, EU, FA, FI, FR, GA, GU, HE, HI, HR, HU, HY, ID, IS, IT, JA, KA, KK, KO, LA, LG, LT, LV, MI, MK, MN, MR, MS, NB, NL, NN, PA, PL, PT, RO, RU, SK, SL, SN, SO, SQ, SR, ST, SV, SW, TA, TE, TH, TL, TN, TR, TS, UK, UR, VI, XH, YO, ZH, ZU,
}
Expand description

This enum specifies the ISO 639-1 code representations for the supported languages.

ISO 639 is a standardized nomenclature used to classify languages.

Variants§

§

AF

The ISO 639-1 code for Afrikaans

§

AR

The ISO 639-1 code for Arabic

§

AZ

The ISO 639-1 code for Azerbaijani

§

BE

The ISO 639-1 code for Belarusian

§

BG

The ISO 639-1 code for Bulgarian

§

BN

The ISO 639-1 code for Bengali

§

BS

The ISO 639-1 code for Bosnian

§

CA

The ISO 639-1 code for Catalan

§

CS

The ISO 639-1 code for Czech

§

CY

The ISO 639-1 code for Welsh

§

DA

The ISO 639-1 code for Danish

§

DE

The ISO 639-1 code for German

§

EL

The ISO 639-1 code for Greek

§

EN

The ISO 639-1 code for English

§

EO

The ISO 639-1 code for Esperanto

§

ES

The ISO 639-1 code for Spanish

§

ET

The ISO 639-1 code for Estonian

§

EU

The ISO 639-1 code for Basque

§

FA

The ISO 639-1 code for Persian

§

FI

The ISO 639-1 code for Finnish

§

FR

The ISO 639-1 code for French

§

GA

The ISO 639-1 code for Irish

§

GU

The ISO 639-1 code for Gujarati

§

HE

The ISO 639-1 code for Hebrew

§

HI

The ISO 639-1 code for Hindi

§

HR

The ISO 639-1 code for Croatian

§

HU

The ISO 639-1 code for Hungarian

§

HY

The ISO 639-1 code for Armenian

§

ID

The ISO 639-1 code for Indonesian

§

IS

The ISO 639-1 code for Icelandic

§

IT

The ISO 639-1 code for Italian

§

JA

The ISO 639-1 code for Japanese

§

KA

The ISO 639-1 code for Georgian

§

KK

The ISO 639-1 code for Kazakh

§

KO

The ISO 639-1 code for Korean

§

LA

The ISO 639-1 code for Latin

§

LG

The ISO 639-1 code for Ganda

§

LT

The ISO 639-1 code for Lithuanian

§

LV

The ISO 639-1 code for Latvian

§

MI

The ISO 639-1 code for Maori

§

MK

The ISO 639-1 code for Macedonian

§

MN

The ISO 639-1 code for Mongolian

§

MR

The ISO 639-1 code for Marathi

§

MS

The ISO 639-1 code for Malay

§

NB

The ISO 639-1 code for Norwegian Bokmal

§

NL

The ISO 639-1 code for Dutch

§

NN

The ISO 639-1 code for Norwegian Nynorsk

§

PA

The ISO 639-1 code for Punjabi

§

PL

The ISO 639-1 code for Polish

§

PT

The ISO 639-1 code for Portuguese

§

RO

The ISO 639-1 code for Romanian

§

RU

The ISO 639-1 code for Russian

§

SK

The ISO 639-1 code for Slovak

§

SL

The ISO 639-1 code for Slovene

§

SN

The ISO 639-1 code for Shona

§

SO

The ISO 639-1 code for Somali

§

SQ

The ISO 639-1 code for Albanian

§

SR

The ISO 639-1 code for Serbian

§

ST

The ISO 639-1 code for Sotho

§

SV

The ISO 639-1 code for Swedish

§

SW

The ISO 639-1 code for Swahili

§

TA

The ISO 639-1 code for Tamil

§

TE

The ISO 639-1 code for Telugu

§

TH

The ISO 639-1 code for Thai

§

TL

The ISO 639-1 code for Tagalog

§

TN

The ISO 639-1 code for Tswana

§

TR

The ISO 639-1 code for Turkish

§

TS

The ISO 639-1 code for Tsonga

§

UK

The ISO 639-1 code for Ukrainian

§

UR

The ISO 639-1 code for Urdu

§

VI

The ISO 639-1 code for Vietnamese

§

XH

The ISO 639-1 code for Xhosa

§

YO

The ISO 639-1 code for Yoruba

§

ZH

The ISO 639-1 code for Chinese

§

ZU

The ISO 639-1 code for Zulu

Trait Implementations§

source§

impl Clone for IsoCode639_1

source§

fn clone(&self) -> IsoCode639_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 IsoCode639_1

source§

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

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

impl<'de> Deserialize<'de> for IsoCode639_1

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 IsoCode639_1

source§

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

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

impl FromStr for IsoCode639_1

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<IsoCode639_1, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for IsoCode639_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 IntoEnumIterator for IsoCode639_1

§

type Iterator = IsoCode639_1Iter

source§

fn iter() -> IsoCode639_1Iter

source§

impl Ord for IsoCode639_1

source§

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

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

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

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

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

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

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

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

impl PartialEq for IsoCode639_1

source§

fn eq(&self, other: &IsoCode639_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 IsoCode639_1

source§

fn partial_cmp(&self, other: &IsoCode639_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 Serialize for IsoCode639_1

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 TryFrom<&str> for IsoCode639_1

§

type Error = ParseError

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

fn try_from(s: &str) -> Result<IsoCode639_1, <Self as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl Copy for IsoCode639_1

source§

impl Eq for IsoCode639_1

source§

impl StructuralEq for IsoCode639_1

source§

impl StructuralPartialEq for IsoCode639_1

Auto Trait Implementations§

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

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToCompactString for T
where T: Display,

source§

fn to_compact_string(&self) -> CompactString

Converts the given value to a CompactString. Read more
source§

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

source§

default 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>,

§

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>,

§

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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,