Function bdrck::net::compare_ips

source ·
pub fn compare_ips(a: IpAddr, b: IpAddr) -> Option<Ordering>
Expand description

Compare the two given IP addresses, returning the ordering between them. If the given IP addresses are not of the same type (V4/V6), returns None instead.