Skip to content
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

std::num::Checked{Add,Sub,Mul,Div} should have type parameters #13510

Closed
lifthrasiir opened this issue Apr 14, 2014 · 1 comment
Closed

std::num::Checked{Add,Sub,Mul,Div} should have type parameters #13510

lifthrasiir opened this issue Apr 14, 2014 · 1 comment

Comments

@lifthrasiir
Copy link
Contributor

The corresponding std::ops traits have both the type of right hand side operand and the type of result, while Checked* traits do not (and always assume that both operands and result have the same type). There is no real reason to make Checked* traits behave differently from std::ops traits, and having them as is hampers advanced uses of operator overloading: for example, if the scalar type (e.g. DateTime) and difference type (e.g. Duration) are distinct from each other then the current scheme wouldn't work at all.

@steveklabnik
Copy link
Member

These no longer exist in tree. This issue has been moved to the num repo: rust-num/num#59

Dylan-DPC pushed a commit to Dylan-DPC/rust that referenced this issue Nov 1, 2022
feat: Clicking the status bar item stops and starts the server
flip1995 pushed a commit to flip1995/rust that referenced this issue Oct 18, 2024
…ssify, r=llogiq

Cleanup `const_float_classify`

As mentioned at rust-lang#13508 `const_float_classify` has been stabilized recently in rust-lang#130157 and can be cleanup

Close rust-lang#13508

changelog: [none]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants