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