Trait publicsuffix::Psl[][src]

pub trait Psl {
    pub fn find<'a, T>(&self, labels: T) -> Info
    where
        T: Iterator<Item = &'a [u8]>
; pub fn suffix(&self, name: &'a [u8]) -> Option<Suffix<'a>> { ... }
pub fn domain(&self, name: &'a [u8]) -> Option<Domain<'a>> { ... } }

A list of all public suffixes

Required methods

pub fn find<'a, T>(&self, labels: T) -> Info where
    T: Iterator<Item = &'a [u8]>, 
[src]

Finds the suffix information of the given input labels

NB: labels must be in reverse order

Loading content...

Provided methods

pub fn suffix(&self, name: &'a [u8]) -> Option<Suffix<'a>>[src]

Get the public suffix of the domain

pub fn domain(&self, name: &'a [u8]) -> Option<Domain<'a>>[src]

Get the registrable domain

Loading content...

Implementations on Foreign Types

impl<'_, L> List for &'_ L where
    L: List
[src]

Loading content...

Implementors

impl List for IcannList[src]

impl List for List[src]

impl List for PrivateList[src]

Loading content...