-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add convenience methods to IpAddr #1554
Comments
Another thing I'd like is the ability to quickly create localhost and/or unspecified addresses. I sometimes find myself writing Could we also add the following methods to the standard library?
And similarly for unspecified addresses? |
I suggest to start here: https://github.com/rust-lang/rfcs#before-creating-an-rfc |
Well it's not really an RFC, just a couple of ideas. I could move them into an RFC if people think it's worth it. |
This is fixed in rust-lang/rust#34694 |
IpAddr
should have at least the following methods:Edit:
is_multicast
andto_ipv6_{compatible,mapped}
would make sense aswell although I have no need for them.The text was updated successfully, but these errors were encountered: