Enum iso::language::Iso639_1

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

Enumeration over all possible ISO 639-1 language codes

Variants§

§

Aa

§

Ab

§

Af

§

Ak

§

Am

§

Ar

§

An

§

As

§

Av

§

Ae

§

Ay

§

Az

§

Ba

§

Bm

§

Be

§

Bn

§

Bi

§

Bo

§

Bs

§

Br

§

Bg

§

Ca

§

Cs

§

Ch

§

Ce

§

Cu

§

Cv

§

Kw

§

Co

§

Cr

§

Cy

§

Da

§

De

§

Dv

§

Dz

§

El

§

En

§

Eo

§

Et

§

Eu

§

Ee

§

Fo

§

Fa

§

Fj

§

Fi

§

Fr

§

Fy

§

Ff

§

Gd

§

Ga

§

Gl

§

Gv

§

Gn

§

Gu

§

Ht

§

Ha

§

Sh

§

He

§

Hz

§

Hi

§

Ho

§

Hr

§

Hu

§

Hy

§

Ig

§

Io

§

Ii

§

Iu

§

Ie

§

Ia

§

Id

§

Ik

§

Is

§

It

§

Jv

§

Ja

§

Kl

§

Kn

§

Ks

§

Ka

§

Kr

§

Kk

§

Km

§

Ki

§

Rw

§

Ky

§

Kv

§

Kg

§

Ko

§

Kj

§

Ku

§

Lo

§

La

§

Lv

§

Li

§

Ln

§

Lt

§

Lb

§

Lu

§

Lg

§

Mh

§

Ml

§

Mr

§

Mk

§

Mg

§

Mt

§

Mn

§

Mi

§

Ms

§

My

§

Na

§

Nv

§

Nr

§

Nd

§

Ng

§

Ne

§

Nl

§

Nn

§

Nb

§

No

§

Ny

§

Oc

§

Oj

§

Or

§

Om

§

Os

§

Pa

§

Pi

§

Pl

§

Pt

§

Ps

§

Qu

§

Rm

§

Ro

§

Rn

§

Ru

§

Sg

§

Sa

§

Si

§

Sk

§

Sl

§

Se

§

Sm

§

Sn

§

Sd

§

So

§

St

§

Es

§

Sq

§

Sc

§

Sr

§

Ss

§

Su

§

Sw

§

Sv

§

Ty

§

Ta

§

Tt

§

Te

§

Tg

§

Tl

§

Th

§

Ti

§

To

§

Tn

§

Ts

§

Tk

§

Tr

§

Tw

§

Ug

§

Uk

§

Ur

§

Uz

§

Ve

§

Vi

§

Vo

§

Wa

§

Wo

§

Xh

§

Yi

§

Yo

§

Za

§

Zh

§

Zu

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

source§

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

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

impl FromStr for Iso639_1

§

type Err = Error

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

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

Parses a string s to return a value of this type. 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 Language for Iso639_1

source§

fn name(&self) -> &'static str

Returns the language’s name
source§

fn code(&self) -> &'static str

Returns the language’s corresponding language code as a &str based on the underlying format
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 TryFrom<Iso639_1> for Iso639_2b

§

type Error = Error

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

fn try_from(c: Iso639_1) -> Result<Self, <Self as TryFrom<Iso639_1>>::Error>

Performs the conversion.
source§

impl TryFrom<Iso639_1> for Iso639_2t

§

type Error = Error

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

fn try_from(c: Iso639_1) -> Result<Self, <Self as TryFrom<Iso639_1>>::Error>

Performs the conversion.
source§

impl TryFrom<Iso639_1> for Iso639_3

§

type Error = Error

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

fn try_from(c: Iso639_1) -> Result<Self, <Self as TryFrom<Iso639_1>>::Error>

Performs the conversion.
source§

impl TryFrom<Iso639_2b> for Iso639_1

§

type Error = Error

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

fn try_from(c: Iso639_2b) -> Result<Self, <Self as TryFrom<Iso639_2b>>::Error>

Performs the conversion.
source§

impl TryFrom<Iso639_2t> for Iso639_1

§

type Error = Error

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

fn try_from(c: Iso639_2t) -> Result<Self, <Self as TryFrom<Iso639_2t>>::Error>

Performs the conversion.
source§

impl TryFrom<Iso639_3> for Iso639_1

§

type Error = Error

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

fn try_from(c: Iso639_3) -> Result<Self, <Self as TryFrom<Iso639_3>>::Error>

Performs the conversion.
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 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.

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.