Trait sorting_visualization::algorithms::Algorithm[][src]

pub trait Algorithm {
    fn sort(&self, array: Array);
fn name(&self) -> String; }

The general trait for all sorting algorithms.

Required methods

fn sort(&self, array: Array)[src]

Sorts a given array. This method is called in a so called “algorithm thread”.

fn name(&self) -> String[src]

Returns the name of the algorithm that will be displayed to the user. Returned value is an owned String so it can be generated at runtime.

Loading content...

Implementors

impl Algorithm for All[src]

impl Algorithm for BubbleSort[src]

impl Algorithm for CocktailSort[src]

impl Algorithm for CycleSort[src]

impl Algorithm for GnomeSort[src]

impl Algorithm for HeapSort[src]

impl Algorithm for InsertionSort[src]

impl Algorithm for MergeSort[src]

impl Algorithm for Quicksort[src]

impl Algorithm for SelectionSort[src]

impl Algorithm for Shellsort[src]

Loading content...