Struct psl::Domain [−][src]
pub struct Domain<'a> { /* fields omitted */ }
A registrable domain name
Implementations
impl<'_> Domain<'_>
[src]
impl<'_> Domain<'_>
[src]pub const fn new(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) -> Domain<'_>
[src]
Returns the domain with a trailing .
removed
Trait Implementations
impl<'a> Clone for Domain<'a>
[src]
impl<'a> Clone for Domain<'a>
[src]pub fn clone(&self) -> Domain<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> PartialOrd<Domain<'_>> for Domain<'_>
[src]
impl<'_> PartialOrd<Domain<'_>> for Domain<'_>
[src]pub fn partial_cmp(&self, other: &Domain<'_>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<'a> StructuralEq for Domain<'a>
[src]
impl<'a> StructuralEq for Domain<'a>
[src]