[][src]Function bdrck::net::compare_ips

pub fn compare_ips(a: IpAddr, b: IpAddr) -> Option<Ordering>

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.