psl

Trait Psl

Source
pub trait Psl {
    // Required method
    fn find<'a, T>(&self, labels: T) -> Info
       where T: Iterator<Item = &'a [u8]>;

    // Provided methods
    fn suffix<'a>(&self, name: &'a [u8]) -> Option<Suffix<'a>> { ... }
    fn domain<'a>(&self, name: &'a [u8]) -> Option<Domain<'a>> { ... }
}
Expand description

A list of all public suffixes

Required Methods§

Source

fn find<'a, T>(&self, labels: T) -> Info
where T: Iterator<Item = &'a [u8]>,

Finds the suffix information of the given input labels

NB: labels must be in reverse order

Provided Methods§

Source

fn suffix<'a>(&self, name: &'a [u8]) -> Option<Suffix<'a>>

Get the public suffix of the domain

Source

fn domain<'a>(&self, name: &'a [u8]) -> Option<Domain<'a>>

Get the registrable domain

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<L> List for &L
where L: List,

Source§

fn find<'a, T>(&self, labels: T) -> Info
where T: Iterator<Item = &'a [u8]>,

Implementors§