Trait Shuffleable
pub trait Shuffleable
A value which can be used with the prop_shuffle combinator.
This is not a general-purpose trait. Its methods are prefixed with
shuffle_ to avoid the compiler suggesting them or this trait as
corrections in errors.
Required Methods
fn shuffle_len(&self) -> usizeReturn the length of this collection.
fn shuffle_swap(&mut self, a: usize, b: usize)Swap the elements at the given indices.
Implementors
impl<T> Shuffleable for Vec<T>impl<T> Shuffleable for VecDeque<T>impl<T> Shuffleable for [T; 0]impl<T> Shuffleable for [T; 10]impl<T> Shuffleable for [T; 11]impl<T> Shuffleable for [T; 12]impl<T> Shuffleable for [T; 13]impl<T> Shuffleable for [T; 14]impl<T> Shuffleable for [T; 15]impl<T> Shuffleable for [T; 16]impl<T> Shuffleable for [T; 17]impl<T> Shuffleable for [T; 18]impl<T> Shuffleable for [T; 19]impl<T> Shuffleable for [T; 1]impl<T> Shuffleable for [T; 20]impl<T> Shuffleable for [T; 21]impl<T> Shuffleable for [T; 22]impl<T> Shuffleable for [T; 23]impl<T> Shuffleable for [T; 24]impl<T> Shuffleable for [T; 25]impl<T> Shuffleable for [T; 26]impl<T> Shuffleable for [T; 27]impl<T> Shuffleable for [T; 28]impl<T> Shuffleable for [T; 29]impl<T> Shuffleable for [T; 2]impl<T> Shuffleable for [T; 30]impl<T> Shuffleable for [T; 31]impl<T> Shuffleable for [T; 32]impl<T> Shuffleable for [T; 3]impl<T> Shuffleable for [T; 4]impl<T> Shuffleable for [T; 5]impl<T> Shuffleable for [T; 6]impl<T> Shuffleable for [T; 7]impl<T> Shuffleable for [T; 8]impl<T> Shuffleable for [T; 9]impl<T> Shuffleable for [T]