-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 From trait for NonZero ints to NonZero ints #66479
Conversation
r? @shepmaster (rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Thanks for your contribution. Unfortunately I'm closing this as it's a duplicate of #66277. In case that pr doesn't get merged then we'll reopen this or create a new one. |
Implement From trait for the NonZeroUnsigned and NonZeroSigned types to wider versions (i.e NonZeroUnsigned16 to NonZeroUnsigned32).
Added doc-string examples which pass tests.