pub struct Text<'x> {
pub text: Cow<'x, str>,
}Expand description
Unstructured text e-mail header.
Fields§
§text: Cow<'x, str>Implementations§
Trait Implementations§
impl<'x> Eq for Text<'x>
Source§impl<'x> From<Text<'x>> for HeaderType<'x>
impl<'x> From<Text<'x>> for HeaderType<'x>
Source§impl Header for Text<'_>
impl Header for Text<'_>
Source§fn write_header(&self, output: &mut impl Writer, column: usize)
fn write_header(&self, output: &mut impl Writer, column: usize)
Writes the header value followed by CRLF.
column is the number of
bytes already on the current line, normally the header name plus “: “.Source§impl<'x> Ord for Text<'x>
impl<'x> Ord for Text<'x>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'x> PartialOrd for Text<'x>
impl<'x> PartialOrd for Text<'x>
impl<'x> StructuralPartialEq for Text<'x>
Auto Trait Implementations§
impl<'x> Freeze for Text<'x>
impl<'x> RefUnwindSafe for Text<'x>
impl<'x> Send for Text<'x>
impl<'x> Sync for Text<'x>
impl<'x> Unpin for Text<'x>
impl<'x> UnsafeUnpin for Text<'x>
impl<'x> UnwindSafe for Text<'x>
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