Enum lang::Lang

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

Variants§

§

En = 0

§

Zh = 1

§

De = 2

§

Fr = 3

§

Es = 4

§

It = 5

§

Ja = 6

§

Pl = 7

§

Pt = 8

§

Ru = 9

§

Nl = 10

§

Tr = 11

§

Sv = 12

§

Cs = 13

§

Uk = 14

§

Hu = 15

§

Id = 16

§

Ko = 17

§

Ro = 18

§

No = 19

§

Sk = 20

§

Fi = 21

§

Ar = 22

§

Ca = 23

§

Da = 24

§

Fa = 25

§

Vi = 26

§

Lt = 27

§

Hr = 28

§

He = 29

§

Sl = 30

§

Sr = 31

§

Eo = 32

§

El = 33

§

Et = 34

§

Bg = 35

§

Th = 36

§

Ht = 37

§

Is = 38

§

Ne = 39

§

Te = 40

§

La = 41

§

Gl = 42

§

Hi = 43

§

Ceb = 44

§

Ms = 45

§

Eu = 46

§

Bs = 47

§

Lb = 48

§

Lv = 49

§

Ka = 50

§

Sq = 51

§

Mr = 52

§

Az = 53

§

Mk = 54

§

Tl = 55

§

Cy = 56

§

Bn = 57

§

Ta = 58

§

Jv = 59

§

Su = 60

§

Be = 61

§

Ku = 62

§

Af = 63

§

Fy = 64

§

Tg = 65

§

Ur = 66

§

Qu = 67

§

Ml = 68

§

Sw = 69

§

Ga = 70

§

Uz = 71

§

Mi = 72

§

Yo = 73

§

Kn = 74

§

Am = 75

§

Hy = 76

§

As = 77

§

Ay = 78

§

Bm = 79

§

Bho = 80

§

ZhTw = 81

§

Co = 82

§

Dv = 83

§

Ee = 84

§

Fil = 85

§

Gn = 86

§

Gu = 87

§

Ha = 88

§

Haw = 89

§

Hmn = 90

§

Ig = 91

§

Ilo = 92

§

Kk = 93

§

Km = 94

§

Rw = 95

§

Ckb = 96

§

Ky = 97

§

Lo = 98

§

Ln = 99

§

Lg = 100

§

Mai = 101

§

Mg = 102

§

Mt = 103

§

Mn = 104

§

My = 105

§

Ny = 106

§

Or = 107

§

Om = 108

§

Ps = 109

§

Pa = 110

§

Sm = 111

§

Sa = 112

§

Nso = 113

§

St = 114

§

Sn = 115

§

Sd = 116

§

Si = 117

§

So = 118

§

Tt = 119

§

Ti = 120

§

Ts = 121

§

Tk = 122

§

Ak = 123

§

Xh = 124

§

Yi = 125

§

Zu = 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 EnumCount for Lang

source§

const COUNT: usize = 127usize

source§

impl From<Lang> for u16

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 IntoEnumIterator for Lang

§

type Iterator = LangIter

source§

fn iter() -> LangIter

source§

impl Ord for Lang

source§

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

source§

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

§

type Error = u16

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

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

Performs the conversion.
source§

impl Copy for Lang

source§

impl Eq for Lang

source§

impl StructuralPartialEq for Lang

Auto Trait Implementations§

§

impl Freeze for Lang

§

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.