pub fn is_loopback(&self) -> bool {
        match self.url.host() {
            Some(url::Host::Ipv4(addr)) => addr.is_loopback(),
            Some(url::Host::Ipv6(addr)) => addr.is_loopback(),
            _ => false,
        }
    }
/// Returns `true` if this is a loopback address.
///
/// ## IPv4
///
/// This is a loopback address (`127.0.0.0/8`).
///
/// This property is defined by [IETF RFC 1122].
///
/// ## IPv6
///
/// This is the loopback address (`::1`), as defined in [IETF RFC 4291 section 2.5.3].
///
/// [IETF RFC 1122]: https://tools.ietf.org/html/rfc1122
/// [IETF RFC 4291 section 2.5.3]: https://tools.ietf.org/html/rfc4291#section-2.5.3
Returns `true` if this is a loopback address.
Returns ` true ` if this is a loopback address .
pub fn is_loopback(&self) -> bool {
        match self.url.host() {
            Some(url::Host::Ipv4(addr)) => addr.is_loopback(),
            Some(url::Host::Ipv6(addr)) => addr.is_loopback(),
            _ => false,
        }
    }
pub fn is_loopback ( & self ) -> bool { match self . url . host ( ) { Some ( url :: Host :: Ipv4 ( addr ) ) => addr . is_loopback ( ) , Some ( url :: Host :: Ipv6 ( addr ) ) => addr . is_loopback ( ) , _ => false , } }
Returns `true` if this is a loopback address.
Returns ` true ` if this is a loopback address .
&self
ipv4


This property is defined by [IETF RFC 1122].
This property is defined by [ IETF RFC 1122 ] .
ipv6
This is the loopback address (`::1`), as defined in [IETF RFC 4291 section 2.5.3].


This is the loopback address ( ` :: 1 ` ) as defined in [ IETF RFC 4291 section 2 . 5 . 3 ] .