Trait psl::Psl [−][src]
pub trait Psl { fn find<'a, T>(&self, labels: T) -> Info
where
T: Iterator<Item = &'a [u8]>; fn suffix(&self, name: &'a [u8]) -> Option<Suffix<'a>> { ... } fn domain(&self, name: &'a [u8]) -> Option<Domain<'a>> { ... } }
Expand description
A list of all public suffixes
Required methods
fn find<'a, T>(&self, labels: T) -> Info where
T: Iterator<Item = &'a [u8]>,
[src]
T: Iterator<Item = &'a [u8]>,
Expand description
Finds the suffix information of the given input labels
NB: labels
must be in reverse order
Provided methods
fn suffix(&self, name: &'a [u8]) -> Option<Suffix<'a>>
[src]
Expand description
Get the public suffix of the domain
fn domain(&self, name: &'a [u8]) -> Option<Domain<'a>>
[src]
Expand description
Get the registrable domain