pub trait IpPrivatePrefix {
// Required method
fn is_private(&self) -> bool;
}Expand description
Checks if the range of IP addresses are all for private use.
The IPv4 and IPv6 ranges are those specified by the IANA and IETF. The following tables sums up the ranges which are considered as private use by this trait: