-
Notifications
You must be signed in to change notification settings - Fork 13k
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
impl FromStr for NonZeroU8, NonZeroU16, ... #58604
Comments
Sounds plausible, though what the error type should be is an interesting question -- there's nothing in |
In any case, these kinds of decisions are above my pay grade :). Just seems a shame that this integer functionality ( |
I'm taking this issue 🎉 |
Add FromStr impl for NonZero types This is a WIP implementation because I do have some questions regarding the solution. Somebody should ping the lang team on this I guess. Please see the annotations on the code for more details. Closes rust-lang#58604
Add FromStr impl for NonZero types This is a WIP implementation because I do have some questions regarding the solution. Somebody should ping the lang team on this I guess. Please see the annotations on the code for more details. Closes rust-lang#58604
Add FromStr impl for NonZero types This is a WIP implementation because I do have some questions regarding the solution. Somebody should ping the lang team on this I guess. Please see the annotations on the code for more details. Closes rust-lang#58604
Add FromStr impl for NonZero types This is a WIP implementation because I do have some questions regarding the solution. Somebody should ping the lang team on this I guess. Please see the annotations on the code for more details. Closes rust-lang#58604
Is there any reason why the following types couldn't implement
core::str::FromStr
?core::num::NonZeroU8
core::num::NonZeroU16
core::num::NonZeroU32
core::num::NonZeroUsize
core::num::NonZeroU64
core::num::NonZeroU128
The text was updated successfully, but these errors were encountered: