Trait psl_types::List

source ·
pub trait List {
    // 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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<L: List> List for &L

source§

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

Implementors§