Encoding

Enum Encoding 

Source
#[repr(C)]
pub enum Encoding {
Show 75 variants ISO_8859_1 = 0, ISO_8859_2 = 1, ISO_8859_3 = 2, ISO_8859_4 = 3, ISO_8859_5 = 4, ISO_8859_6 = 5, ISO_8859_7 = 6, ISO_8859_8 = 7, ISO_8859_9 = 8, ISO_8859_10 = 9, JAPANESE_EUC_JP = 10, JAPANESE_SHIFT_JIS = 11, JAPANESE_JIS = 12, CHINESE_BIG5 = 13, CHINESE_GB = 14, CHINESE_EUC_CN = 15, KOREAN_EUC_KR = 16, UNICODE_UNUSED = 17, CHINESE_EUC_DEC = 18, CHINESE_CNS = 19, CHINESE_BIG5_CP950 = 20, JAPANESE_CP932 = 21, UTF8 = 22, UNKNOWN_ENCODING = 23, ASCII_7BIT = 24, RUSSIAN_KOI8_R = 25, RUSSIAN_CP1251 = 26, MSFT_CP1252 = 27, RUSSIAN_KOI8_RU = 28, MSFT_CP1250 = 29, ISO_8859_15 = 30, MSFT_CP1254 = 31, MSFT_CP1257 = 32, ISO_8859_11 = 33, MSFT_CP874 = 34, MSFT_CP1256 = 35, MSFT_CP1255 = 36, ISO_8859_8_I = 37, HEBREW_VISUAL = 38, CZECH_CP852 = 39, CZECH_CSN_369103 = 40, MSFT_CP1253 = 41, RUSSIAN_CP866 = 42, ISO_8859_13 = 43, ISO_2022_KR = 44, GBK = 45, GB18030 = 46, BIG5_HKSCS = 47, ISO_2022_CN = 48, TSCII = 49, TAMIL_MONO = 50, TAMIL_BI = 51, JAGRAN = 52, MACINTOSH_ROMAN = 53, UTF7 = 54, BHASKAR = 55, HTCHANAKYA = 56, UTF16BE = 57, UTF16LE = 58, UTF32BE = 59, UTF32LE = 60, BINARYENC = 61, HZ_GB_2312 = 62, UTF8UTF8 = 63, TAM_ELANGO = 64, TAM_LTTMBARANI = 65, TAM_SHREE = 66, TAM_TBOOMIS = 67, TAM_TMNEWS = 68, TAM_WEBTAMIL = 69, KDDI_SHIFT_JIS = 70, DOCOMO_SHIFT_JIS = 71, SOFTBANK_SHIFT_JIS = 72, KDDI_ISO_2022_JP = 73, SOFTBANK_ISO_2022_JP = 74,
}

Variants§

§

ISO_8859_1 = 0

§

ISO_8859_2 = 1

§

ISO_8859_3 = 2

§

ISO_8859_4 = 3

§

ISO_8859_5 = 4

§

ISO_8859_6 = 5

§

ISO_8859_7 = 6

§

ISO_8859_8 = 7

§

ISO_8859_9 = 8

§

ISO_8859_10 = 9

§

JAPANESE_EUC_JP = 10

§

JAPANESE_SHIFT_JIS = 11

§

JAPANESE_JIS = 12

§

CHINESE_BIG5 = 13

§

CHINESE_GB = 14

§

CHINESE_EUC_CN = 15

§

KOREAN_EUC_KR = 16

§

UNICODE_UNUSED = 17

§

CHINESE_EUC_DEC = 18

§

CHINESE_CNS = 19

§

CHINESE_BIG5_CP950 = 20

§

JAPANESE_CP932 = 21

§

UTF8 = 22

§

UNKNOWN_ENCODING = 23

§

ASCII_7BIT = 24

§

RUSSIAN_KOI8_R = 25

§

RUSSIAN_CP1251 = 26

§

MSFT_CP1252 = 27

§

RUSSIAN_KOI8_RU = 28

§

MSFT_CP1250 = 29

§

ISO_8859_15 = 30

§

MSFT_CP1254 = 31

§

MSFT_CP1257 = 32

§

ISO_8859_11 = 33

§

MSFT_CP874 = 34

§

MSFT_CP1256 = 35

§

MSFT_CP1255 = 36

§

ISO_8859_8_I = 37

§

HEBREW_VISUAL = 38

§

CZECH_CP852 = 39

§

CZECH_CSN_369103 = 40

§

MSFT_CP1253 = 41

§

RUSSIAN_CP866 = 42

§

ISO_8859_13 = 43

§

ISO_2022_KR = 44

§

GBK = 45

§

GB18030 = 46

§

BIG5_HKSCS = 47

§

ISO_2022_CN = 48

§

TSCII = 49

§

TAMIL_MONO = 50

§

TAMIL_BI = 51

§

JAGRAN = 52

§

MACINTOSH_ROMAN = 53

§

UTF7 = 54

§

BHASKAR = 55

§

HTCHANAKYA = 56

§

UTF16BE = 57

§

UTF16LE = 58

§

UTF32BE = 59

§

UTF32LE = 60

§

BINARYENC = 61

§

HZ_GB_2312 = 62

§

UTF8UTF8 = 63

§

TAM_ELANGO = 64

§

TAM_LTTMBARANI = 65

§

TAM_SHREE = 66

§

TAM_TBOOMIS = 67

§

TAM_TMNEWS = 68

§

TAM_WEBTAMIL = 69

§

KDDI_SHIFT_JIS = 70

§

DOCOMO_SHIFT_JIS = 71

§

SOFTBANK_SHIFT_JIS = 72

§

KDDI_ISO_2022_JP = 73

§

SOFTBANK_ISO_2022_JP = 74

Trait Implementations§

Source§

impl Clone for Encoding

Source§

fn clone(&self) -> Encoding

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 Encoding

Source§

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

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

impl Ord for Encoding

Source§

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

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Encoding

Source§

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

Source§

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Encoding

Source§

impl Eq for Encoding

Source§

impl StructuralPartialEq for Encoding

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

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