-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for ip_as_octets #137259
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(ip_as_octets)]This is a tracking issue for enabling reference access to
IpAddr,Ipv4Addr, andIpv6Addrcontents. Previously, only an array copy was exposed via.octets().Public API
Steps / History
core::net::Ip*Addroctet bytes,impl AsRef<[u8]> for core::net::Ip*Addrlibs-team#535IpAddr::as_octets()#136609Unresolved Questions
#[repr(transparent)]for these types and document layout stability, leaving transmutation to a byte slice to third-party libraries.