pub struct TLDExtract { /* private fields */ }
Expand description
TLDExtract
Implementations§
Source§impl TLDExtract
impl TLDExtract
Sourcepub fn new(suffix: SuffixList, domain_to_unicode: bool) -> Result<Self>
pub fn new(suffix: SuffixList, domain_to_unicode: bool) -> Result<Self>
Creates a new TLDExtract from suffix
Sourcepub fn update(&mut self, suffix: Option<SuffixList>)
pub fn update(&mut self, suffix: Option<SuffixList>)
update SuffixList
Source§impl TLDExtract
hierarchical part
impl TLDExtract
hierarchical part
Sourcepub fn extract(&mut self, target: &str) -> Result<ExtractResult>
pub fn extract(&mut self, target: &str) -> Result<ExtractResult>
TLDExtract extract
Trait Implementations§
Source§impl Debug for TLDExtract
impl Debug for TLDExtract
Auto Trait Implementations§
impl Freeze for TLDExtract
impl RefUnwindSafe for TLDExtract
impl Send for TLDExtract
impl Sync for TLDExtract
impl Unpin for TLDExtract
impl UnwindSafe for TLDExtract
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