Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize {IpAddr, Ipv6Addr}::to_canonical #115955

Merged
merged 1 commit into from
Oct 16, 2023

Commits on Sep 19, 2023

  1. Stabilize {IpAddr, Ipv6Addr}::to_canonical

    Make `IpAddr::to_canonical` and `IpV6Addr::to_canonical` stable, as well as
    const stabilize `Ipv6Addr::to_ipv4_mapped`.
    
    Newly stable API:
    
        impl IpAddr {
            // Now stable under `ip_to_canonical`
            const fn to_canonical(&self) -> IpAddr;
        }
    
        impl Ipv6Addr {
            // Now stable under `ip_to_canonical`
            const fn to_canonical(&self) -> IpAddr;
    
            // Already stable, this makes it const stable under
            // `const_ipv6_to_ipv4_mapped`
            const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr>
        }
    
    These stabilize a subset of the following tracking issues:
    
    - rust-lang#27709
    - rust-lang#76205
    tgross35 committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    7381f9d View commit details
    Browse the repository at this point in the history