Trait Miraclesort

Source
pub trait Miraclesort {
    // Required method
    fn miraclesort(&self);
}
Expand description

This trait provides the miraclesort functionality.

Required Methods§

Source

fn miraclesort(&self)

Miracle sort is a sort that truly requires a miracle. We keep checking the array until it is sorted. It requires that some external force (a miracle?) changes some bits in the computer in a way that it becomes sorted.

Implementations on Foreign Types§

Source§

impl<T: PartialOrd> Miraclesort for Vec<T>

A default implementatino for Vec<T>

Implementors§