pub enum Charset {
Show 26 variants
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),
}
Expand description
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§
Source§impl Ord for Charset
impl Ord for Charset
Source§impl PartialOrd for Charset
impl PartialOrd for Charset
impl Eq for Charset
Auto Trait Implementations§
impl Freeze for Charset
impl RefUnwindSafe for Charset
impl Send for Charset
impl Sync for Charset
impl Unpin for Charset
impl UnwindSafe for Charset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more