pub fn min_ip(a: IpAddr, b: IpAddr) -> Option<IpAddr> {
    match compare_ips(a, b) {
        None => None,
        Some(ordering) => Some(match ordering {
            Ordering::Greater => b,
            _ => a,
        }),
    }
}
/// Return the smaller of the two IP addresses, or None if they cannot be
/// compared (see compare_ips).
Return the smaller of the two IP addresses, or None if they cannot be
compared .
Return the smaller of the two IP addresses or None if they cannot be compared .
pub fn min_ip(a: IpAddr, b: IpAddr) -> Option<IpAddr> {
    match compare_ips(a, b) {
        None => None,
        Some(ordering) => Some(match ordering {
            Ordering::Greater => b,
            _ => a,
        }),
    }
}
pub fn min_ip ( a : IpAddr , b : IpAddr ) -> Option < IpAddr > { match compare_ips ( a , b ) { None => None , Some ( ordering ) => Some ( match ordering { Ordering :: Greater => b , _ => a , } ) , } }
Return the smaller of the two IP addresses, or None if they cannot be
compared (see compare_ips).
Return the smaller of the two IP addresses or None if they cannot be compared ( see compare_ips ) .
a
IpAddr
b
IpAddr
a
IpAddr
b
IpAddr