pub enum TextSubtype {
Plain,
Html,
Unknown(MIMEAtom<'static>),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TextSubtype
impl Clone for TextSubtype
Source§fn clone(&self) -> TextSubtype
fn clone(&self) -> TextSubtype
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 TextSubtype
impl ContainsUtf8 for TextSubtype
fn contains_utf8(&self) -> bool
Source§impl Debug for TextSubtype
impl Debug for TextSubtype
Source§impl Default for TextSubtype
impl Default for TextSubtype
Source§fn default() -> TextSubtype
fn default() -> TextSubtype
Returns the “default value” for a type. Read more
Source§impl<'a> From<&NaiveType<'a>> for TextSubtype
impl<'a> From<&NaiveType<'a>> for TextSubtype
Source§impl IntoBoundedStatic for TextSubtype
impl IntoBoundedStatic for TextSubtype
Source§type Static = TextSubtype
type Static = TextSubtype
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 TextSubtype
impl PartialEq for TextSubtype
Source§fn eq(&self, other: &TextSubtype) -> bool
fn eq(&self, other: &TextSubtype) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextSubtype
Source§impl ToBoundedStatic for TextSubtype
impl ToBoundedStatic for TextSubtype
Auto Trait Implementations§
impl Freeze for TextSubtype
impl RefUnwindSafe for TextSubtype
impl Send for TextSubtype
impl Sync for TextSubtype
impl Unpin for TextSubtype
impl UnsafeUnpin for TextSubtype
impl UnwindSafe for TextSubtype
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