pub trait TupleSwap: TupleGetMut {
// Required methods
fn swap(&mut self, a: usize, b: usize);
fn try_swap(&mut self, a: usize, b: usize) -> bool;
}
Expand description
Swaps two elements in the tuple
pub trait TupleSwap: TupleGetMut {
// Required methods
fn swap(&mut self, a: usize, b: usize);
fn try_swap(&mut self, a: usize, b: usize) -> bool;
}
Swaps two elements in the tuple