Struct net_traits::pub_domains::PUB_DOMAINS
source · struct PUB_DOMAINS {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = PubDomainRules>§
fn suffix_pair<'a>(&self, domain: &'a str) -> (&'a str, &'a str)
pub fn public_suffix<'a>(&self, domain: &'a str) -> &'a str
pub fn registrable_suffix<'a>(&self, domain: &'a str) -> &'a str
pub fn is_public_suffix(&self, domain: &str) -> bool
pub fn is_registrable_suffix(&self, domain: &str) -> bool
Trait Implementations§
source§impl Deref for PUB_DOMAINS
impl Deref for PUB_DOMAINS
§type Target = PubDomainRules
type Target = PubDomainRules
The resulting type after dereferencing.
source§fn deref(&self) -> &PubDomainRules
fn deref(&self) -> &PubDomainRules
Dereferences the value.
impl LazyStatic for PUB_DOMAINS
Auto Trait Implementations§
impl RefUnwindSafe for PUB_DOMAINS
impl Send for PUB_DOMAINS
impl Sync for PUB_DOMAINS
impl Unpin for PUB_DOMAINS
impl UnwindSafe for PUB_DOMAINS
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more