pub enum EmailCharset {
US_ASCII,
Charset(Charset),
Unknown(String),
}Expand description
Email charsets are defined by IANA https://www.iana.org/assignments/character-sets/character-sets.xhtml
We piggy-back on the “charset” library that is specifically designed for email.
Variants§
Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContainsUtf8 for EmailCharset
impl ContainsUtf8 for EmailCharset
fn contains_utf8(&self) -> bool
Source§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 IntoBoundedStatic for EmailCharset
impl IntoBoundedStatic for EmailCharset
Source§type Static = EmailCharset
type Static = EmailCharset
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl PartialEq for EmailCharset
impl PartialEq for EmailCharset
Source§fn eq(&self, other: &EmailCharset) -> bool
fn eq(&self, other: &EmailCharset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmailCharset
Source§impl ToBoundedStatic for EmailCharset
impl ToBoundedStatic 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 UnsafeUnpin 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