We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This seems good. Should we have a saturating shift function? This isn't the first time we've needed this sort of thing.
Originally posted by @martinthomson in #2294 (comment)
The text was updated successfully, but these errors were encountered:
unwrap
expect
Until https://doc.rust-lang.org/beta/std/num/struct.Saturating.html#method.rotate_left is stable, we might as well just copy the implementation.
Sorry, something went wrong.
Rotation isn't what we want. The code we'd need is here: https://doc.rust-lang.org/beta/src/core/num/saturating.rs.html#82 (commented out with a big question about what it means). Perhaps we can provide some useful input to that discussion.
I've commented on rust-lang/rust#103440, which covers the language enhancements.
No branches or pull requests
Originally posted by @martinthomson in #2294 (comment)
The text was updated successfully, but these errors were encountered: