Enum charsets::Charset
[−]
[src]
pub enum Charset { UsAscii, Iso88591, Iso88592, Iso88593, Iso88594, Iso88595, Iso88596, Iso88597, Iso88598, Iso88599, Iso885910, ShiftJis, EucJp, Iso2022Kr, EucKr, Iso2022Jp, Iso2022Jp2, Iso88596E, Iso88596I, Iso88598E, Iso88598I, Gb2312, Big5, Koi8R, Utf8, Unregistered(String), }
A Mime charset.
The string representation is normalised to upper case.
See http://www.iana.org/assignments/character-sets/character-sets.xhtml
Variants
UsAscii
US ASCII
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
ShiftJis
Shift_JIS
EucJp
EUC-JP
Iso2022Kr
ISO-2022-KR
EucKr
EUC-KR
Iso2022Jp
ISO-2022-JP
Iso2022Jp2
ISO-2022-JP-2
Iso88596E
ISO-8859-6-E
Iso88596I
ISO-8859-6-I
Iso88598E
ISO-8859-8-E
Iso88598I
ISO-8859-8-I
Gb2312
GB2312
Big5
Big5
Koi8R
KOI8-R
Utf8
UTF-8
Unregistered(String)
An arbitrary charset specified as a string
Trait Implementations
impl PartialOrd for Charset
[src]
fn partial_cmp(&self, __arg_0: &Charset) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Charset) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Charset) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Charset) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Charset) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Charset
[src]
fn cmp(&self, __arg_0: &Charset) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Eq for Charset
[src]
impl Debug for Charset
[src]
impl Clone for Charset
[src]
fn clone(&self) -> Charset
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Display for Charset
[src]
impl FromStr for Charset
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Charset>
Parses a string s
to return a value of this type. Read more