krisprice / ipnet

IpNet, Ipv4Net, and Ipv6Net types and methods for Rust
Apache License 2.0
122 stars 26 forks source link

Add new_const implementations #56

Closed jjanowsk closed 2 months ago

jjanowsk commented 3 months ago

Add new_const implementations that verify prefix length at compile time. That allows users to create const items of IpvXNet type.