Struct addr::Email [−][src]
pub struct Email { /* fields omitted */ }
Methods
impl Email
[src]
impl Email
Trait Implementations
impl FromStr for Email
[src]
impl FromStr for Email
type Err = Error
The associated error which can be returned from parsing.
fn from_str(address: &str) -> Result<Email>
[src]
fn from_str(address: &str) -> Result<Email>
Extracts Host from an email address
This method can also be used, simply to validate an email address. If it returns an error, the email address is not valid.
impl Display for Email
[src]
impl Display for Email
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Email
[src]
impl Eq for Email
impl PartialEq for Email
[src]
impl PartialEq for Email
fn eq(&self, other: &Email) -> bool
[src]
fn eq(&self, other: &Email) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Email) -> bool
[src]
fn ne(&self, other: &Email) -> bool
This method tests for !=
.
impl Ord for Email
[src]
impl Ord for Email
fn cmp(&self, other: &Email) -> Ordering
[src]
fn cmp(&self, other: &Email) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Email
[src]
impl PartialOrd for Email
fn partial_cmp(&self, other: &Email) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Email) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Email) -> bool
[src]
fn lt(&self, other: &Email) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Email) -> bool
[src]
fn le(&self, other: &Email) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Email) -> bool
[src]
fn gt(&self, other: &Email) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Email) -> bool
[src]
fn ge(&self, other: &Email) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Email
[src]
impl Hash for Email
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Email
[src]
impl Debug for Email