Function ip_is_local

Source
pub const fn ip_is_local(ip: IpAddr) -> bool
Expand description

Returns true if the address is a local address (non-reachable via the broader internet).

§FIXME

This is only mostly accurate.

It should be replaced when std stabilizes things: https://github.com/rust-lang/rust/issues/27709