fn af_for_net(net: IpNetwork) -> u8 {
    if net.is_ipv4() {
        constants::AF_INET as u8
    } else if net.is_ipv6() {
        constants::AF_INET6 as u8
    } else {
        unreachable!()
    }
}
// get the address family for a given IpNetwork
get the address family for a given IpNetwork
get the address family for a given IpNetwork
fn af_for_net(net: IpNetwork) -> u8 {
    if net.is_ipv4() {
        constants::AF_INET as u8
    } else if net.is_ipv6() {
        constants::AF_INET6 as u8
    } else {
        unreachable!()
    }
}
fn af_for_net ( net : IpNetwork ) -> u8 { if net . is_ipv4 ( ) { constants :: AF_INET as u8 } else if net . is_ipv6 ( ) { constants :: AF_INET6 as u8 } else { unreachable ! ( ) } }
get the address family for a given IpNetwork
get the address family for a given IpNetwork
net
IpNetwork
net
IpNetwork