pub struct List { /* private fields */ }Expand description
List provides domain parsing capabilities
Implementations§
Source§impl List
impl List
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
expire internal cache
pub fn cache_len(&self) -> usize
Sourcepub fn parse_domain<'a>(&self, raw_input: &'a str) -> Option<&'a str>
pub fn parse_domain<'a>(&self, raw_input: &'a str) -> Option<&'a str>
parse_domain parses a tld+1 from a domain
Sourcepub fn parse_source_file(filename: &str, cache_size: usize) -> Result<Self>
pub fn parse_source_file(filename: &str, cache_size: usize) -> Result<Self>
PUBLIC_SUFFIX_LIST_FILE=“some/path/to/file.txt” parse_source_file Will prefer the env variable to the passed &str path
Auto Trait Implementations§
impl !Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more