Commit Graph

65 Commits

Author SHA1 Message Date
ab7d5b32d0 Add PartialOrd and Ord instances for network types. 2017-05-16 10:34:11 +00:00
c11ebdbd5b Docs update 2016-12-21 17:56:17 +00:00
021bb38573 Clean up some things as reported by clippy 2016-12-21 09:46:32 +00:00
84721241c5 Cleanup parse_addr
It has been moved to `common`
2016-12-17 15:52:36 +00:00
c80c3682a8 Remove from_cidr 2016-12-17 15:48:22 +00:00
d368d2bf02 Use the new ? operator 2016-12-08 12:07:34 +00:00
c16cd32ed0 Mark from_cidr as deprecated
- Also refactored a bit
- Updated doc tests
2016-09-21 18:40:13 -07:00
7b829e5e5a Implement FromStr for Ipv4Network
This should be more idiomatic Rust, following the examples in stdlib
2016-09-21 14:47:20 -07:00
8463a3fc5e Add ip_mask_to_prefix, ipv4_mask_to_prefix and ipv6_mask_to_prefix 2016-07-23 18:07:47 +01:00
6bb344bab3 Make mask, network and broadcast return Ipv4Addr 2016-06-30 19:41:49 +02:00
7346d133b3 rust-fmt 2016-06-30 19:41:48 +02:00
3ebfd5d973 Simplify ipv4 broadcast implementation 2016-06-30 05:18:36 +02:00
e07de702db Add documentation to some IPv4 methods 2016-06-30 05:08:54 +02:00
1d5ea2956f Move ipv4 iter method after constructors 2016-06-30 04:35:33 +02:00
5950239744 Add code to submodules 2016-06-30 04:33:13 +02:00