fn ip_to_vec(ip: IpAddr) -> Vec<u8> {
    match ip {
        IpAddr::V4(i) => i.octets().to_vec(),
        IpAddr::V6(i) => i.octets().to_vec(),
    }
}
// convert an IP address to a Vec<u8>
convert an IP address to a Vec
convert an IP address to a Vec
fn ip_to_vec(ip: IpAddr) -> Vec<u8> {
    match ip {
        IpAddr::V4(i) => i.octets().to_vec(),
        IpAddr::V6(i) => i.octets().to_vec(),
    }
}
fn ip_to_vec ( ip : IpAddr ) -> Vec < u8 > { match ip { IpAddr :: V4 ( i ) => i . octets ( ) . to_vec ( ) , IpAddr :: V6 ( i ) => i . octets ( ) . to_vec ( ) , } }
convert an IP address to a Vec<u8>
convert an IP address to a Vec<u8 >
ip
IpAddr
ip
IpAddr