Enum lang::Lang

source ·
#[repr(u16)]
pub enum Lang {
Show 121 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, La = 56, Lv = 57, Lo = 58, Lt = 59, Ln = 60, Lg = 61, Lb = 62, Rw = 63, Ro = 64, Mg = 65, Mt = 66, Mr = 67, Ml = 68, Ms = 69, Mk = 70, Mai = 71, Mi = 72, Mn = 73, Bn = 74, My = 75, Hmn = 76, Xh = 77, Zu = 78, Ne = 79, No = 80, Pa = 81, Ps = 82, Ny = 83, Ak = 84, Sv = 85, Sm = 86, Si = 87, Eo = 88, Sk = 89, Sl = 90, Sw = 91, Ceb = 92, So = 93, Tg = 94, Te = 95, Ta = 96, Th = 97, Tr = 98, Tk = 99, Cy = 100, Ur = 101, Uz = 102, He = 103, El = 104, Haw = 105, Sd = 106, Hu = 107, Sn = 108, Hy = 109, Ig = 110, Ilo = 111, Yi = 112, Hi = 113, Su = 114, Id = 115, Jv = 116, Yo = 117, Vi = 118, ZhTw = 119, Ts = 120,
}

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

§

La = 56

§

Lv = 57

§

Lo = 58

§

Lt = 59

§

Ln = 60

§

Lg = 61

§

Lb = 62

§

Rw = 63

§

Ro = 64

§

Mg = 65

§

Mt = 66

§

Mr = 67

§

Ml = 68

§

Ms = 69

§

Mk = 70

§

Mai = 71

§

Mi = 72

§

Mn = 73

§

Bn = 74

§

My = 75

§

Hmn = 76

§

Xh = 77

§

Zu = 78

§

Ne = 79

§

No = 80

§

Pa = 81

§

Ps = 82

§

Ny = 83

§

Ak = 84

§

Sv = 85

§

Sm = 86

§

Si = 87

§

Eo = 88

§

Sk = 89

§

Sl = 90

§

Sw = 91

§

Ceb = 92

§

So = 93

§

Tg = 94

§

Te = 95

§

Ta = 96

§

Th = 97

§

Tr = 98

§

Tk = 99

§

Cy = 100

§

Ur = 101

§

Uz = 102

§

He = 103

§

El = 104

§

Haw = 105

§

Sd = 106

§

Hu = 107

§

Sn = 108

§

Hy = 109

§

Ig = 110

§

Ilo = 111

§

Yi = 112

§

Hi = 113

§

Su = 114

§

Id = 115

§

Jv = 116

§

Yo = 117

§

Vi = 118

§

ZhTw = 119

§

Ts = 120

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 = 121usize

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> 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.