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
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
Implementors
impl Psl for List