Rollup merge of #119081 - jstasiak:is-ipv4-mapped, r=dtolnay

Add Ipv6Addr::is_ipv4_mapped

This change consists of cherry-picking the content from the original PR[1], which got closed due to inactivity, and applying the following changes:

* Resolving merge conflicts (obviously)
* Linked to to_ipv4_mapped instead of to_ipv4 in the documentation (seems more appropriate)
* Added the must_use and rustc_const_unstable attributes the original didn't have

I think it's a reasonably useful method to have.

[1] https://github.com/rust-lang/rust/pull/86490
This commit is contained in:
Nadrieril 2024-01-21 06:38:35 +01:00 committed by GitHub
commit ee76f6860f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available