Language

Enum Language 

Source
pub enum Language {
Show 183 variants AB, AA, AF, AK, SQ, AM, AR, AN, HY, AS, AV, AE, AY, AZ, BM, BA, EU, BE, BN, BI, BS, BR, BG, MY, CA, CH, CE, NY, ZH, CU, CV, KW, CO, CR, HR, CS, DA, DV, NL, DZ, EN, EO, ET, EE, FO, FJ, FI, FR, FY, FF, GD, GL, LG, KA, DE, EL, KL, GN, GU, HT, HA, HE, HZ, HI, HO, HU, IS, IO, IG, ID, IA, IE, IU, IK, GA, IT, JA, JV, KN, KR, KS, KK, KM, KI, RW, KY, KV, KG, KO, KJ, KU, LO, LA, LV, LI, LN, LT, LU, LB, MK, MG, MS, ML, MT, GV, MI, MR, MH, MN, NA, NV, ND, NR, NG, NE, NO, NB, NN, OC, OJ, OR, OM, OS, PI, PS, FA, PL, PT, PA, QU, RO, RM, RN, RU, SE, SM, SG, SA, SC, SR, SN, SD, SI, SK, SL, SO, ST, ES, SU, SW, SS, SV, TL, TY, TG, TA, TT, TE, TH, BO, TI, TO, TS, TN, TR, TK, TW, UG, UK, UR, UZ, VE, VI, VO, WA, CY, WO, XH, II, YI, YO, ZA, ZU,
}
Expand description

Language enum re-export.

This use statement re-exports from the hidden shared re-export for user convenience on parsing. ISO 639-1 language code implementation with validation

Provides two-way mapping between language codes and names with:

  • Case-insensitive parsing
  • Strict validation
  • Complete ISO 639-1 coverage

Variants§

§

AB

§

AA

§

AF

§

AK

§

SQ

§

AM

§

AR

§

AN

§

HY

§

AS

§

AV

§

AE

§

AY

§

AZ

§

BM

§

BA

§

EU

§

BE

§

BN

§

BI

§

BS

§

BR

§

BG

§

MY

§

CA

§

CH

§

CE

§

NY

§

ZH

§

CU

§

CV

§

KW

§

CO

§

CR

§

HR

§

CS

§

DA

§

DV

§

NL

§

DZ

§

EN

§

EO

§

ET

§

EE

§

FO

§

FJ

§

FI

§

FR

§

FY

§

FF

§

GD

§

GL

§

LG

§

KA

§

DE

§

EL

§

KL

§

GN

§

GU

§

HT

§

HA

§

HE

§

HZ

§

HI

§

HO

§

HU

§

IS

§

IO

§

IG

§

ID

§

IA

§

IE

§

IU

§

IK

§

GA

§

IT

§

JA

§

JV

§

KN

§

KR

§

KS

§

KK

§

KM

§

KI

§

RW

§

KY

§

KV

§

KG

§

KO

§

KJ

§

KU

§

LO

§

LA

§

LV

§

LI

§

LN

§

LT

§

LU

§

LB

§

MK

§

MG

§

MS

§

ML

§

MT

§

GV

§

MI

§

MR

§

MH

§

MN

§

NA

§

NV

§

ND

§

NR

§

NG

§

NE

§

NO

§

NB

§

NN

§

OC

§

OJ

§

OR

§

OM

§

OS

§

PI

§

PS

§

FA

§

PL

§

PT

§

PA

§

QU

§

RO

§

RM

§

RN

§

RU

§

SE

§

SM

§

SG

§

SA

§

SC

§

SR

§

SN

§

SD

§

SI

§

SK

§

SL

§

SO

§

ST

§

ES

§

SU

§

SW

§

SS

§

SV

§

TL

§

TY

§

TG

§

TA

§

TT

§

TE

§

TH

§

BO

§

TI

§

TO

§

TS

§

TN

§

TR

§

TK

§

TW

§

UG

§

UK

§

UR

§

UZ

§

VE

§

VI

§

VO

§

WA

§

CY

§

WO

§

XH

§

II

§

YI

§

YO

§

ZA

§

ZU

Trait Implementations§

Source§

impl Clone for Language

Source§

fn clone(&self) -> Language

Returns a duplicate 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 Language

Source§

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

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

impl Display for Language

Source§

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

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

impl FromStr for Language

Source§

type Err = ParseError

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

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

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

impl Hash for Language

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

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 Language

Source§

impl PartialEq for Language

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 ToTokens for Language

This implementation converts the tagged union to an equivalent call from the runtime context.

This is exclusively meant to be used from the macro generation context.

Source§

fn to_tokens(&self, tokens: &mut TokenStream)

Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

Convert self directly into a TokenStream object. Read more
Source§

fn into_token_stream(self) -> TokenStream
where Self: Sized,

Convert self directly into a TokenStream object. Read more
Source§

impl TryFrom<&str> for Language

Source§

type Error = ParseError

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

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

Performs the conversion.
Source§

impl Eq for Language

Source§

impl StructuralPartialEq for Language

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> 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> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

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

Checks if this value is equivalent to the given key. Read more
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> IntoCompileError for T
where T: Display,

Source§

fn to_compile_error(&self) -> TokenStream

Convert error reference to runtime. Read more
Source§

fn to_syn_error<T>(&self, span: T) -> Error
where T: ToTokens,

Convert error reference to a spanned SynError. Read more
Source§

impl<T> Spanned for T
where T: Spanned + ?Sized,

Source§

fn span(&self) -> Span

Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty.
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.