pub trait SortingStatsTrait {
// Required methods
fn comparisons(&mut self, n: i64);
fn swaps(&mut self, n: i64);
// Provided methods
fn comparison(&mut self) { ... }
fn swap(&mut self) { ... }
}pub trait SortingStatsTrait {
// Required methods
fn comparisons(&mut self, n: i64);
fn swaps(&mut self, n: i64);
// Provided methods
fn comparison(&mut self) { ... }
fn swap(&mut self) { ... }
}