Trait psl_types::List[][src]

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

A list of all public suffixes

Required methods

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

Finds the suffix information of the given input labels

Loading content...

Provided methods

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

Get the public suffix of the domain

NB: name must be a valid domain name in lowercase

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

Get the registrable domain

NB: name must be a valid domain name in lowercase

Loading content...

Implementors

Loading content...