1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! A native Rust library for Mozilla's Public Suffix List #![no_std] #![forbid(unsafe_code)] pub use psl_types::{Domain, Info, List as Psl, Suffix, Type}; mod list; /// A static public suffix list pub struct List; impl<'a> Psl<'a> for List { #[inline] fn find<T>(&self, labels: T) -> Info where T: Iterator<Item = &'a [u8]>, { list::lookup(labels) } }