Skip to content

Add support for rotate #4

Description

@Erk-

When rotate_left is used the inverse should be rotate_right and the same the other way around.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions