Tracking Issue for ip_as_octets
#137259
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(ip_as_octets)]
This is a tracking issue for enabling reference access to
IpAddr
,Ipv4Addr
, andIpv6Addr
contents. Previously, only an array copy was exposed via.octets()
.Public API
Steps / History
core::net::Ip*Addr
octet bytes,impl AsRef<[u8]> for core::net::Ip*Addr
libs-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.The text was updated successfully, but these errors were encountered: