pub struct SmtpLocalPart<'a>(pub Cow<'a, str>);Expand description
The local part of an email address (before the @).
Tuple Fields§
§0: Cow<'a, str>Trait Implementations§
Source§impl AsRef<str> for SmtpLocalPart<'_>
impl AsRef<str> for SmtpLocalPart<'_>
Source§impl<'a> Clone for SmtpLocalPart<'a>
impl<'a> Clone for SmtpLocalPart<'a>
Source§fn clone(&self) -> SmtpLocalPart<'a>
fn clone(&self) -> SmtpLocalPart<'a>
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<'a> Debug for SmtpLocalPart<'a>
impl<'a> Debug for SmtpLocalPart<'a>
Source§impl Display for SmtpLocalPart<'_>
impl Display for SmtpLocalPart<'_>
impl<'a> Eq for SmtpLocalPart<'a>
Source§impl<'a> From<SmtpLocalPart<'a>> for Cow<'a, str>
impl<'a> From<SmtpLocalPart<'a>> for Cow<'a, str>
Source§fn from(part: SmtpLocalPart<'a>) -> Self
fn from(part: SmtpLocalPart<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for SmtpLocalPart<'a>
impl<'a> Hash for SmtpLocalPart<'a>
Source§impl<'a> IntoBoundedStatic for SmtpLocalPart<'a>
impl<'a> IntoBoundedStatic for SmtpLocalPart<'a>
Source§type Static = SmtpLocalPart<'static>
type Static = SmtpLocalPart<'static>
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<'a> Ord for SmtpLocalPart<'a>
impl<'a> Ord for SmtpLocalPart<'a>
Source§fn cmp(&self, other: &SmtpLocalPart<'a>) -> Ordering
fn cmp(&self, other: &SmtpLocalPart<'a>) -> Ordering
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
Source§impl<'a> PartialEq for SmtpLocalPart<'a>
impl<'a> PartialEq for SmtpLocalPart<'a>
Source§impl<'a> PartialOrd for SmtpLocalPart<'a>
impl<'a> PartialOrd for SmtpLocalPart<'a>
impl<'a> StructuralPartialEq for SmtpLocalPart<'a>
Source§impl<'a> ToBoundedStatic for SmtpLocalPart<'a>
impl<'a> ToBoundedStatic for SmtpLocalPart<'a>
Auto Trait Implementations§
impl<'a> Freeze for SmtpLocalPart<'a>
impl<'a> RefUnwindSafe for SmtpLocalPart<'a>
impl<'a> Send for SmtpLocalPart<'a>
impl<'a> Sync for SmtpLocalPart<'a>
impl<'a> Unpin for SmtpLocalPart<'a>
impl<'a> UnsafeUnpin for SmtpLocalPart<'a>
impl<'a> UnwindSafe for SmtpLocalPart<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.