Function subnet_to_prefix

Source
pub fn subnet_to_prefix(subnet: SubnetMask) -> Result<PrefixLength, String>
Expand description

Calculate the prefix length from the given subnet mask.