[−][src]Trait psl::Psl
A list of all public suffices
Required methods
fn find(&self, domain: &[u8]) -> Info
Finds the suffix of the given input labels
Assumptions
NB: domain
must be a valid domain name in lowercase
Provided methods
fn suffix<'a>(&self, domain: &'a str) -> Option<Suffix<'a>>
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>>
Get the registrable domain
NB: domain
must be a valid domain name in lowercase