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. Read more

impl Clone for Host
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Host
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Host
[src]

impl Hash for Host
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Host
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Host

impl Sync for Host