File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ let net: NetAddr = "ff02::1/128".parse().unwrap();
1818let net : Netv4Addr = " 203.0.113.19/29" . parse (). unwrap ();
1919```
2020
21+ You can do some operations with these parsed structures, like checking address containment:
22+
23+ ``` rust
24+ let net : NetAddr = " 10.10.10.0/24" . parse (). unwrap ();
25+ let addr : IpAddr = " 10.10.10.1" . parse (). unwrap ();
26+ assert! (net . contains (& addr ));
27+ ```
28+
2129(More options will be added eventually.)
2230
2331## Vision
@@ -39,7 +47,7 @@ We will release version 1.0 when the GitHub milestone has been fully resolved.
3947
4048## License
4149
42- > Copyright © ; 2019 Kristofer J. Rye
50+ > Copyright © ; 2019& mdash ; 2022 Kristofer J. Rye
4351
4452This software is released under either of:
4553
You can’t perform that action at this time.
0 commit comments