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