Struct tldextract::TldExtractor [−][src]
pub struct TldExtractor { /* fields omitted */ }
The tld extractor, see TldOption for more docs.
Methods
impl TldExtractor
[src]
impl TldExtractor
pub fn new(option: TldOption) -> TldExtractor
[src]
pub fn new(option: TldOption) -> TldExtractor
Constructs a new TldExtractor
.
see TldOption for more docs.
pub fn extract(&self, url: &str) -> Result<TldResult>
[src]
pub fn extract(&self, url: &str) -> Result<TldResult>
Extract (subdomain, domain, domain suffix) tuple from a given url
pub fn extract_naive(&self, url: &str) -> Result<TldResult>
[src]
pub fn extract_naive(&self, url: &str) -> Result<TldResult>
Extract (subdomain, domain, domain suffix) tuple from a given url but override the universal naive_mode in TldExtractor.
Auto Trait Implementations
impl Send for TldExtractor
impl Send for TldExtractor
impl Sync for TldExtractor
impl Sync for TldExtractor