-
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
Display traits not implemented for Wrapping<T> #33659
Comments
Looks like it's already implemented #33023. |
Oh, good. But according to nightly docs, the other formatting traits ( |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jun 22, 2016
Implement Binary, Octal, LowerHex and UpperHex for Wrapping<T> Fixes: rust-lang#33659
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jun 22, 2016
Implement Binary, Octal, LowerHex and UpperHex for Wrapping<T> Fixes: rust-lang#33659
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrapping<T>
is a bit sorry-looking right now.let foo: Wrapping<u8> = 3;
andWrapping(1) + 1
are type errors, rather than assigningfoo
the valueWrapping(3)
and having the valueWrapping(2)
as I expected. You can't even print them.I asked in
#rust
and the consensus was the arithmetic is a little more controversial because of the potential for a combinatoric explosion ofimpl
s, but thatstd::fmt
's fun toys are low-effort high-awesome and so warrant filing an issue.The text was updated successfully, but these errors were encountered: