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

Methods

impl Host
[src]

A convenient method to simply check if a host is an IP address

A convenient method to simply check if a host is a domain name

Trait Implementations

impl Debug for Host
[src]

Formats the value using the given formatter.

impl Clone for Host
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Host
[src]

Formats the value using the given formatter. Read more