diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-05-28 02:07:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-28 02:07:48 -0700 |
| commit | 941bf8bee12ebf271cae5bfb8e8dd7a2a5fac1d3 (patch) | |
| tree | 0d8ec4a984bf9204fb9a1dedce592dbf587c91e4 /compiler/rustc_errors/src | |
| parent | fb95fda87fe6658d3865eb9c75fe51b4c5add09b (diff) | |
| parent | 0d42cf7afe7e8aa9ded41a503fe852e94b7caa13 (diff) | |
| download | rust-941bf8bee12ebf271cae5bfb8e8dd7a2a5fac1d3.tar.gz rust-941bf8bee12ebf271cae5bfb8e8dd7a2a5fac1d3.zip | |
Rollup merge of #125551 - clarfonthey:ip-bits, r=jhpratt
Stabilise `IpvNAddr::{BITS, to_bits, from_bits}` (`ip_bits`)
This completed FCP in #113744. (Closes #113744.)
Stabilises the following APIs:
```rust
impl Ipv4Addr {
pub const BITS: u32 = 32;
pub const fn from_bits(bits: u32) -> Ipv4Addr;
pub const fn to_bits(self) -> u32;
}
impl Ipv6Addr {
pub const BITS: u32 = 128;
pub const fn from_bits(bits: u128) -> Ipv4Addr;
pub const fn to_bits(self) -> u128;
}
```
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions
