Skip to main content

SortingStatsTrait

Trait SortingStatsTrait 

Source
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) { ... }
}

Required Methods§

Source

fn comparisons(&mut self, n: i64)

Source

fn swaps(&mut self, n: i64)

Provided Methods§

Source

fn comparison(&mut self)

Source

fn swap(&mut self)

Implementors§