[][src]Struct mail::Domain

pub struct Domain(_);

Methods

impl Domain[src]

pub fn from_unchecked(string: String) -> Domain[src]

creates a domain from a string without checking for validity

pub fn as_str(&self) -> &str[src]

pub fn into_ascii_string(self) -> Result<SoftAsciiString, EncodingError>[src]

pub fn to_ascii_string(&self) -> Result<Cow<SoftAsciiStr>, EncodingError>[src]

Methods from Deref<Target = SimpleItem>

pub fn as_str(&self) -> &str[src]

pub fn is_ascii(&self) -> bool[src]

Trait Implementations

impl Hash for Domain[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Domain[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> HeaderTryFrom<T> for Domain where
    T: HeaderTryInto<Input>, 
[src]

impl Eq for Domain[src]

impl EncodableInHeader for Domain[src]

impl Deref for Domain[src]

type Target = SimpleItem

The resulting type after dereferencing.

impl PartialEq<Domain> for Domain[src]

impl FromStr for Domain[src]

type Err = ComponentCreationError

The associated error which can be returned from parsing.

impl Debug for Domain[src]

Auto Trait Implementations

impl Send for Domain

impl Sync for Domain

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<F, T> HeaderTryInto for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T> HeaderTryFrom for T[src]

impl<T> Erased for T