Tracking issue for integer methods for Wrapping · Issue #32463 · rust-lang/rust (original) (raw)

u32 and other primitive integer types implement a number of bit-manipulation methods like rotate_left, but Wrapping<_> does not. At the moment this can be worked around with code like Wrapping(x.0.rotate_left(n)) instead of x.rotate_left(n).

It would be nice to implement:

Edit: Others added after #32463 (comment)

and maybe other methods, for:

Edit: From #50465