pub fn swap3_bca<T>(a: &mut T, b: &mut T, c: &mut T)
Expand description
Rotates three values to the left.
§Arguments
a
- The first value, to be assigned with the value ofb
.b
- The second value, to be assigned with the value ofc
.c
- The third value, to be assigned with the value ofa
.
§Example
let mut a = 10;
let mut b = 20;
let mut c = 30;
swap3::swap3_bca(&mut a, &mut b, &mut c);
assert_eq!([a, b, c], [20, 30, 10]);