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
When rotate_left is used the inverse should be rotate_right and the same the other way around.
rotate_left
rotate_right
For example
a.rotate_left(b); // ↓ a.rotate_right(b);
This is likely not enough since rotate is not a mutating operation so a way would be to make our own function along the lines of:
fn rotate_left(i: &mut u32, n: u32) { *i = *i.rotate_left(n); }
And then swap that between left and right in the reverse macro.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When
rotate_left
is used the inverse should berotate_right
and the same the other way around.For example
This is likely not enough since rotate is not a mutating operation so a way would be to make our own function along the lines of:
And then swap that between left and right in the reverse macro.
The text was updated successfully, but these errors were encountered: