[−][src]Function ipnetwork::ipv6_mask_to_prefix
pub fn ipv6_mask_to_prefix(mask: Ipv6Addr) -> Result<u8, IpNetworkError>
Converts a Ipv6Addr
network mask into a prefix.
If the mask is invalid this will return an IpNetworkError::InvalidPrefix
.