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 IntoEnumIterator for Language
impl IntoEnumIterator for Language
type Iterator = LanguageIter
fn iter() -> LanguageIter
Source§impl ToTokens for Language
This implementation converts the tagged union
to an equivalent call from the runtime context.
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)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoCompileError for Twhere
T: Display,
impl<T> IntoCompileError for Twhere
T: Display,
Source§fn to_compile_error(&self) -> TokenStream
fn to_compile_error(&self) -> TokenStream
Convert error reference to runtime. Read more
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
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.