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) -> usize

Return the length of this collection.

fn shuffle_swap(&mut self, a: usize, b: usize)

Swap the elements at the given indices.

Implementors