Trait psl::Psl[][src]

pub trait Psl {
    fn find<'a, 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<'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

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

Get the public suffix of the domain

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

Get the registrable domain

Loading content...

Implementors

impl List for List[src]

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

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

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

Loading content...