Enum publicsuffix::Host
[−]
[src]
pub enum Host { Ip(IpAddr), Domain(Domain), }
Holds information about a particular host
This is created by List::parse_host
.
Variants
Ip(IpAddr)
Domain(Domain)
Methods
impl Host
[src]
fn is_ip(&self) -> bool
A convenient method to simply check if a host is an IP address
fn is_domain(&self) -> bool
A convenient method to simply check if a host is a domain name
Trait Implementations
impl Debug for Host
[src]
impl Clone for Host
[src]
fn clone(&self) -> Host
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Host
[src]
fn eq(&self, __arg_0: &Host) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Host) -> bool
This method tests for !=
.
impl Eq for Host
[src]
impl Hash for Host
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more