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

Finds the suffix of the given input labels

Assumptions

NB: domain must be a valid domain name in lowercase

Provided Methods

Get the public suffix of the domain

NB: domain must be a valid domain name in lowercase

Get the registrable domain

NB: domain must be a valid domain name in lowercase

Implementors