Skip to main content

TextEncoding

Enum TextEncoding 

Source
pub enum TextEncoding {
Show 21 variants Reserved1(u8), Reserved2(u8, u8), Iso88591, Iso88592, Iso88593, Iso88594, Iso88595, Iso88596, Iso88597, Iso88598, Iso88599, Iso885910, Iso885911, Iso885913, Iso885914, Iso885915, Iso10646, KSX1001_2004, GB2312_1980, Big5, UTF8,
}
Expand description

Text encodings as defined by ETSI EN 300 468, used by the Text type.

Variants§

§

Reserved1(u8)

§

Reserved2(u8, u8)

§

Iso88591

ISO 8859-1

§

Iso88592

ISO 8859-2

§

Iso88593

ISO 8859-3

§

Iso88594

ISO 8859-4

§

Iso88595

ISO 8859-5

§

Iso88596

ISO 8859-6

§

Iso88597

ISO 8859-7

§

Iso88598

ISO 8859-8

§

Iso88599

ISO 8859-9

§

Iso885910

ISO 8859-10

§

Iso885911

ISO 8859-11

§

Iso885913

ISO 8859-13

§

Iso885914

ISO 8859-14

§

Iso885915

ISO 8859-15

§

Iso10646

ISO 10646

§

KSX1001_2004

KSX1001-2004

§

GB2312_1980

GB-2312-1980

§

Big5

Big5 subset of ISO/IEC 10646

§

UTF8

UTF-8,

Trait Implementations§

Source§

impl Debug for TextEncoding

Source§

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

Formats the value using the given formatter. Read more

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