Trait psl::Psl [−][src]
pub trait Psl { fn find(&self, domain: &str) -> 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
Provided Methods
fn suffix<'a>(&self, domain: &'a str) -> Option<Suffix<'a>>
Get the public suffix of the domain
NB: domain
must be unicode and lowercase
fn domain<'a>(&self, domain: &'a str) -> Option<Domain<'a>>
Get the registrable domain
NB: domain
must be unicode and lowercase
Implementors
impl Psl for List