Trait psl_types::List[][src]

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

A list of all public suffixes

Required methods

fn find<'a, 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<'a>(&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<'a>(&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

impl<L: List> List for &L[src]

Loading content...