We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f26c41b commit 0fede96Copy full SHA for 0fede96
text/0000-ipv6addr-octets.md
@@ -1,13 +1,13 @@
1
-- Feature Name: ipv6addr_octets_interface
+- Feature Name: ipaddr_octet_arrays
2
- Start Date: 2016-02-12
3
- RFC PR: (leave this empty)
4
- Rust Issue: (leave this empty)
5
6
# Summary
7
[summary]: #summary
8
9
-Add constructor and conversion functions for `std::net::Ipv6Addr` that are
10
-oriented around octets.
+Add constructor and conversion functions for `std::net::Ipv6Addr` and
+`std::net::Ipv4Addr` that are oriented around arrays of octets.
11
12
# Motivation
13
[motivation]: #motivation
@@ -56,6 +56,8 @@ impl From<[u8; 4]> for Ipv4Addr {
56
}
57
```
58
59
+Note: `Ipv4Addr` already has an `octets` method that returns a `[u8; 4]`.
60
+
61
# Drawbacks
62
[drawbacks]: #drawbacks
63
0 commit comments