[][src]Struct mail::Domain

pub struct Domain(_);

Implementations

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 Clone for Domain[src]

impl Debug for Domain[src]

impl Deref for Domain[src]

type Target = SimpleItem

The resulting type after dereferencing.

impl EncodableInHeader for Domain[src]

impl Eq for Domain[src]

impl FromStr for Domain[src]

type Err = ComponentCreationError

The associated error which can be returned from parsing.

impl Hash for Domain[src]

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

impl PartialEq<Domain> for Domain[src]

impl StructuralEq for Domain[src]

impl StructuralPartialEq for Domain[src]

Auto Trait Implementations

impl RefUnwindSafe for Domain

impl Send for Domain

impl Sync for Domain

impl Unpin for Domain

impl UnwindSafe for Domain

Blanket Implementations

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

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

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

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> HeaderTryFrom<T> for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.