-
Notifications
You must be signed in to change notification settings - Fork 138
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
More features for Float
#8
Comments
From @AtheMathmo on November 1, 2016 8:50 I just want to second There are other ways around it - like writing helper functions to convert my data structures to non-generic types that implement |
From @bluss on November 1, 2016 9:11 Here's a fun workaround: https://docs.rs/debugit/0.1.0/debugit/struct.DebugIt.html (Requires nightly right now, but you just use it for debugging anyway). |
From @AtheMathmo on November 1, 2016 9:13 Oh neat, thanks! |
I've decided to limit the clutter of |
What is that status of this issue? I'm trying to fix bugs in a library that uses the |
No change. If you need to propagate it widely, I'd suggest making your own combined trait: trait MyFloat: Float + Debug {}
impl<T: Float + Debug> MyFloat for T {} Maybe we could add some extended trait like this to |
Not so easy, I'm not the library owner and can't make the decision. Currently I'm editing all the files every time I start debugging, just to remove all the edits before opening PRs...
That would be nice. On the other hand, are you aware of implementations of |
Maybe so, but I'd rather not make guesses when it comes to breaking changes. If you're able to use a nightly toolchain for debugging, the |
From @bluss on March 7, 2016 15:19
If
Float
truly is forf32
andf64
(it should be), we can frontload it with as much features as possible.Wishlist:
'static
Display + Debug + LowerExp + UpperExp
Copied from original issue: rust-num/num#178
The text was updated successfully, but these errors were encountered: