krisprice / ipnet

IpNet, Ipv4Net, and Ipv6Net types and methods for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return Result from all methods that take a prefix length argument

krisprice opened this issue · comments

Change new() and subnets() to return Result in the case where the prefix length is invalid. Create a new error type for invalid prefix lengths.

  • Will need to address the subnets() method also.
  • Investigate passing through errors from new() to trunc() and the ergonomics of this.