pub enum EmailCharset {
Show 26 variants
US_ASCII,
ISO_8859_1,
ISO_8859_2,
ISO_8859_3,
ISO_8859_4,
ISO_8859_5,
ISO_8859_6,
ISO_8859_7,
ISO_8859_8,
ISO_8859_9,
ISO_8859_10,
Shift_JIS,
EUC_JP,
ISO_2022_KR,
EUC_KR,
ISO_2022_JP,
ISO_2022_JP_2,
ISO_8859_6_E,
ISO_8859_6_I,
ISO_8859_8_E,
ISO_8859_8_I,
GB2312,
Big5,
KOI8_R,
UTF_8,
Unknown,
}Expand description
Specific implementation of charset
imf_codec has its own charset list to follow IANA’s one. encoding_rs implements a different standard that does not know US_ASCII. using encoding_rs datastructures directly would lead to a loss of information. https://www.iana.org/assignments/character-sets/character-sets.xhtml
Variants§
US_ASCII
ISO_8859_1
ISO_8859_2
ISO_8859_3
ISO_8859_4
ISO_8859_5
ISO_8859_6
ISO_8859_7
ISO_8859_8
ISO_8859_9
ISO_8859_10
Shift_JIS
EUC_JP
ISO_2022_KR
EUC_KR
ISO_2022_JP
ISO_2022_JP_2
ISO_8859_6_E
ISO_8859_6_I
ISO_8859_8_E
ISO_8859_8_I
GB2312
Big5
KOI8_R
UTF_8
Unknown
Implementations§
Source§impl EmailCharset
impl EmailCharset
Trait Implementations§
Source§impl Clone for EmailCharset
impl Clone for EmailCharset
Source§fn clone(&self) -> EmailCharset
fn clone(&self) -> EmailCharset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailCharset
impl Debug for EmailCharset
Source§impl Default for EmailCharset
impl Default for EmailCharset
Source§fn default() -> EmailCharset
fn default() -> EmailCharset
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a [u8]> for EmailCharset
impl<'a> From<&'a [u8]> for EmailCharset
Source§impl<'a> From<&'a str> for EmailCharset
impl<'a> From<&'a str> for EmailCharset
Source§impl PartialEq for EmailCharset
impl PartialEq for EmailCharset
Source§impl ToString for EmailCharset
impl ToString for EmailCharset
impl StructuralPartialEq for EmailCharset
Auto Trait Implementations§
impl Freeze for EmailCharset
impl RefUnwindSafe for EmailCharset
impl Send for EmailCharset
impl Sync for EmailCharset
impl Unpin for EmailCharset
impl UnwindSafe for EmailCharset
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