Enum media_types::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<Charset> for Charset
[src]
fn partial_cmp(&self, __arg_0: &Charset) -> Option<Ordering>
fn lt(&self, __arg_0: &Charset) -> bool
fn le(&self, __arg_0: &Charset) -> bool
fn gt(&self, __arg_0: &Charset) -> bool
fn ge(&self, __arg_0: &Charset) -> bool
impl Display for Charset
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl FromStr for Charset
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Charset, Error>
Parses a string s
to return a value of this type. Read more
impl Ord for Charset
[src]
impl Eq for Charset
[src]
impl PartialEq<Charset> for Charset
[src]
fn eq(&self, other: &Charset) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Debug for Charset
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
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