Trait psl::Psl[][src]

pub trait Psl {
    fn find(&self, domain: &[u8]) -> Info;

    fn suffix<'a>(&self, domain: &'a str) -> Option<Suffix<'a>> { ... }
fn domain<'a>(&self, domain: &'a str) -> Option<Domain<'a>> { ... } }

A list of all public suffices

Required methods

fn find(&self, domain: &[u8]) -> Info[src]

Finds the suffix of the given input labels

Assumptions

NB: domain must be a valid domain name in lowercase

Loading content...

Provided methods

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

Get the public suffix of the domain

NB: domain must be a valid domain name in lowercase

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

Get the registrable domain

NB: domain must be a valid domain name in lowercase

Loading content...

Implementors

impl Psl for List[src]

Loading content...