pub trait Shuffle {
    // Required method
    fn shuffle(&mut self) -> Fallible<()>;
}
Expand description

Shuffle a mutable reference to a collection.

Required Methods§

source

fn shuffle(&mut self) -> Fallible<()>

Proof Definition

For any input self of type Self, mutate self such that the elements within are ordered randomly. Returns Err(e) if there is insufficient system entropy, or Ok(()) otherwise.

Implementations on Foreign Types§

source§

impl<T> Shuffle for Vec<T>

source§

fn shuffle(&mut self) -> Fallible<()>

Implementors§