fn calc_netmask_from_size6(prefix_length: usize) -> Ipv6Addr {
    let mut netmask: u128 = 0;
    for i in 0..prefix_length {
        netmask |= 0b1 << (127 - i)
    }
    Ipv6Addr::from(netmask)
}
/// Calculate an IPv6 netmask from a given prefix length
Calculate an IPv6 netmask from a given prefix length
Calculate an IPv6 netmask from a given prefix length
fn calc_netmask_from_size6(prefix_length: usize) -> Ipv6Addr {
    let mut netmask: u128 = 0;
    for i in 0..prefix_length {
        netmask |= 0b1 << (127 - i)
    }
    Ipv6Addr::from(netmask)
}
fn calc_netmask_from_size6 ( prefix_length : usize ) -> Ipv6Addr { let mut netmask : u128 = 0 ; for i in 0 .. prefix_length { netmask |= 0b1 << ( 127 - i ) } Ipv6Addr :: from ( netmask ) }
Calculate an IPv6 netmask from a given prefix length
Calculate an IPv6 netmask from a given prefix length
prefix_length
usize
prefix_length
usize