Hello
I wonder what the motivation behind the NetworkSize is. As I understand, the purpose of the IpNetwork enum is to generalize handling of both IPv4 and IPv6 networks. If it is so, why doesn't IpNetwork::size simply return u128? The NetworkSize isn't smaller, doesn't have many traits (eg. can't be summed together, doesn't have a Display implementation, doesn't support comparing to literals well…
Anyway, thank you for working on this, it is something I've stumbled upon multiple times that I'd like to have.
Hello
I wonder what the motivation behind the
NetworkSizeis. As I understand, the purpose of theIpNetworkenum is to generalize handling of both IPv4 and IPv6 networks. If it is so, why doesn'tIpNetwork::sizesimply returnu128? TheNetworkSizeisn't smaller, doesn't have many traits (eg. can't be summed together, doesn't have aDisplayimplementation, doesn't support comparing to literals well…Anyway, thank you for working on this, it is something I've stumbled upon multiple times that I'd like to have.