Tracking issue for integer methods for Wrapping (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@SimonSapin

Description

@SimonSapin

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