Ipv4Network::size panics if self.prefix == 0 since the result is too large (2^32):
pub fn size(self) -> u32 {
let host_bits = u32::from(IPV4_BITS - self.prefix);
(2 as u32).pow(host_bits)
}
This could have been fixed by using u64 if not for the fact that the same problem occurs in Ipv6Network::size, where the type cannot be made any larger.
If a Result cannot be returned, should the potential panic be documented?