[−][src]Enum publicsuffix::Host
Holds information about a particular host
This is created by List::parse_host
.
Variants
Ip(IpAddr)
Domain(Domain)
Methods
impl Host
[src][−]
pub fn is_ip(&self) -> bool
[src][−]
A convenient method to simply check if a host is an IP address
pub fn is_domain(&self) -> bool
[src][−]
A convenient method to simply check if a host is a domain name
Trait Implementations
impl Eq for Host
[src]
impl Clone for Host
[src][+]
impl PartialEq<Host> for Host
[src][+]
impl Hash for Host
[src][+]
impl Debug for Host
[src][+]
impl Display for Host
[src][+]
Auto Trait Implementations
impl Send for Host
impl Unpin for Host
impl Sync for Host
impl UnwindSafe for Host
impl RefUnwindSafe for Host
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> From<T> for T
[src][+]
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,