Struct psl_types::Domain[][src]

pub struct Domain<'a> { /* fields omitted */ }

A registrable domain name

Implementations

impl Domain<'_>[src]

pub const fn new<'a>(bytes: &'a [u8], suffix: Suffix<'a>) -> Domain<'a>[src]

Builds a root domain

pub const fn as_bytes(&self) -> &[u8][src]

The domain name as bytes

pub const fn suffix(&self) -> Suffix<'_>[src]

The public suffix of this domain name

pub fn trim(self) -> Self[src]

Returns the domain with a trailing . removed

Trait Implementations

impl<'a> Clone for Domain<'a>[src]

impl<'a> Copy for Domain<'a>[src]

impl<'a> Debug for Domain<'a>[src]

impl<'a> Eq for Domain<'a>[src]

impl Hash for Domain<'_>[src]

impl Ord for Domain<'_>[src]

impl PartialEq<&'_ [u8]> for Domain<'_>[src]

impl PartialEq<&'_ str> for Domain<'_>[src]

impl PartialEq<Domain<'_>> for Domain<'_>[src]

impl PartialOrd<Domain<'_>> for Domain<'_>[src]

impl<'a> StructuralEq for Domain<'a>[src]

Auto Trait Implementations

impl<'a> Send for Domain<'a>

impl<'a> Sync for Domain<'a>

impl<'a> Unpin for Domain<'a>

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> From<T> for T[src]

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

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.