pub fn subnet_to_prefix(subnet: SubnetMask) -> Result<PrefixLength, String>
Expand description
Calculate the prefix length from the given subnet mask.
pub fn subnet_to_prefix(subnet: SubnetMask) -> Result<PrefixLength, String>
Calculate the prefix length from the given subnet mask.