pub const fn ipv4_mask_to_prefix_checked(mask: Ipv4Addr) -> Option<u8>Expand description
Converts a Ipv4Addr network mask into a prefix.
If the mask is invalid this will return None. This is useful in const contexts where
Option::unwrap may be called to trigger a compile-time error if the prefix is invalid.