Enum lang::Lang

source ·
#[repr(u8)]
pub enum Lang {
Show 127 variants En = 0, Zh = 1, Es = 2, Fr = 3, De = 4, Ja = 5, It = 6, Ko = 7, Ru = 8, Pt = 9, Sq = 10, Ar = 11, Am = 12, As = 13, Az = 14, Ee = 15, Ay = 16, Ga = 17, Et = 18, Or = 19, Om = 20, Eu = 21, Be = 22, Bm = 23, Bg = 24, Is = 25, Pl = 26, Bs = 27, Fa = 28, Bho = 29, Af = 30, Tt = 31, Da = 32, Dv = 33, Ti = 34, Sa = 35, Fil = 36, Fi = 37, Fy = 38, Km = 39, Ka = 40, Gu = 41, Gn = 42, Kk = 43, Ht = 44, Ha = 45, Nl = 46, Ky = 47, Gl = 48, Ca = 49, Cs = 50, Kn = 51, Co = 52, Hr = 53, Qu = 54, Ku = 55, Ckb = 56, La = 57, Lv = 58, Lo = 59, Lt = 60, Ln = 61, Lg = 62, Lb = 63, Rw = 64, Ro = 65, Mg = 66, Mt = 67, Mr = 68, Ml = 69, Ms = 70, Mk = 71, Mai = 72, Mi = 73, Mn = 74, Bn = 75, My = 76, Hmn = 77, Xh = 78, Zu = 79, Ne = 80, No = 81, Pa = 82, Ps = 83, Ny = 84, Ak = 85, Sv = 86, Sm = 87, Sr = 88, Nso = 89, St = 90, Si = 91, Eo = 92, Sk = 93, Sl = 94, Sw = 95, Ceb = 96, So = 97, Tg = 98, Te = 99, Ta = 100, Th = 101, Tr = 102, Tk = 103, Cy = 104, Ur = 105, Uk = 106, Uz = 107, He = 108, El = 109, Haw = 110, Sd = 111, Hu = 112, Sn = 113, Hy = 114, Ig = 115, Ilo = 116, Yi = 117, Hi = 118, Su = 119, Id = 120, Jv = 121, Yo = 122, Vi = 123, ZhTw = 124, Ts = 125, Ug = 126,
}

Variants§

§

En = 0

§

Zh = 1

§

Es = 2

§

Fr = 3

§

De = 4

§

Ja = 5

§

It = 6

§

Ko = 7

§

Ru = 8

§

Pt = 9

§

Sq = 10

§

Ar = 11

§

Am = 12

§

As = 13

§

Az = 14

§

Ee = 15

§

Ay = 16

§

Ga = 17

§

Et = 18

§

Or = 19

§

Om = 20

§

Eu = 21

§

Be = 22

§

Bm = 23

§

Bg = 24

§

Is = 25

§

Pl = 26

§

Bs = 27

§

Fa = 28

§

Bho = 29

§

Af = 30

§

Tt = 31

§

Da = 32

§

Dv = 33

§

Ti = 34

§

Sa = 35

§

Fil = 36

§

Fi = 37

§

Fy = 38

§

Km = 39

§

Ka = 40

§

Gu = 41

§

Gn = 42

§

Kk = 43

§

Ht = 44

§

Ha = 45

§

Nl = 46

§

Ky = 47

§

Gl = 48

§

Ca = 49

§

Cs = 50

§

Kn = 51

§

Co = 52

§

Hr = 53

§

Qu = 54

§

Ku = 55

§

Ckb = 56

§

La = 57

§

Lv = 58

§

Lo = 59

§

Lt = 60

§

Ln = 61

§

Lg = 62

§

Lb = 63

§

Rw = 64

§

Ro = 65

§

Mg = 66

§

Mt = 67

§

Mr = 68

§

Ml = 69

§

Ms = 70

§

Mk = 71

§

Mai = 72

§

Mi = 73

§

Mn = 74

§

Bn = 75

§

My = 76

§

Hmn = 77

§

Xh = 78

§

Zu = 79

§

Ne = 80

§

No = 81

§

Pa = 82

§

Ps = 83

§

Ny = 84

§

Ak = 85

§

Sv = 86

§

Sm = 87

§

Sr = 88

§

Nso = 89

§

St = 90

§

Si = 91

§

Eo = 92

§

Sk = 93

§

Sl = 94

§

Sw = 95

§

Ceb = 96

§

So = 97

§

Tg = 98

§

Te = 99

§

Ta = 100

§

Th = 101

§

Tr = 102

§

Tk = 103

§

Cy = 104

§

Ur = 105

§

Uk = 106

§

Uz = 107

§

He = 108

§

El = 109

§

Haw = 110

§

Sd = 111

§

Hu = 112

§

Sn = 113

§

Hy = 114

§

Ig = 115

§

Ilo = 116

§

Yi = 117

§

Hi = 118

§

Su = 119

§

Id = 120

§

Jv = 121

§

Yo = 122

§

Vi = 123

§

ZhTw = 124

§

Ts = 125

§

Ug = 126

Implementations§

source§

impl Lang

source

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

Trait Implementations§

source§

impl Clone for Lang

source§

fn clone(&self) -> Lang

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 Lang

source§

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

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

impl From<Lang> for u8

source§

fn from(v: Lang) -> Self

Converts to this type from the input type.
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 PartialEq for Lang

source§

fn eq(&self, other: &Lang) -> 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<&str> for Lang

§

type Error = Error

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

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<String> for Lang

§

type Error = Error

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

fn try_from(value: String) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u8> for Lang

§

type Error = u8

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

fn try_from(v: u8) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for Lang

source§

impl Eq for Lang

source§

impl StructuralPartialEq for Lang

Auto Trait Implementations§

§

impl RefUnwindSafe for Lang

§

impl Send for Lang

§

impl Sync for Lang

§

impl Unpin 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> 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, 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.