Trait proptest::strategy::Shuffleable[][src]

pub trait Shuffleable {
    fn shuffle_len(&self) -> usize;
fn shuffle_swap(&mut self, a: usize, b: usize); }

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[src]

Return the length of this collection.

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

Swap the elements at the given indices.

Loading content...

Implementations on Foreign Types

impl<T> Shuffleable for Vec<T>[src]

impl<T> Shuffleable for VecDeque<T>[src]

Loading content...

Implementors

impl<T> Shuffleable for [T; 0][src]

impl<T> Shuffleable for [T; 1][src]

impl<T> Shuffleable for [T; 2][src]

impl<T> Shuffleable for [T; 3][src]

impl<T> Shuffleable for [T; 4][src]

impl<T> Shuffleable for [T; 5][src]

impl<T> Shuffleable for [T; 6][src]

impl<T> Shuffleable for [T; 7][src]

impl<T> Shuffleable for [T; 8][src]

impl<T> Shuffleable for [T; 9][src]

impl<T> Shuffleable for [T; 10][src]

impl<T> Shuffleable for [T; 11][src]

impl<T> Shuffleable for [T; 12][src]

impl<T> Shuffleable for [T; 13][src]

impl<T> Shuffleable for [T; 14][src]

impl<T> Shuffleable for [T; 15][src]

impl<T> Shuffleable for [T; 16][src]

impl<T> Shuffleable for [T; 17][src]

impl<T> Shuffleable for [T; 18][src]

impl<T> Shuffleable for [T; 19][src]

impl<T> Shuffleable for [T; 20][src]

impl<T> Shuffleable for [T; 21][src]

impl<T> Shuffleable for [T; 22][src]

impl<T> Shuffleable for [T; 23][src]

impl<T> Shuffleable for [T; 24][src]

impl<T> Shuffleable for [T; 25][src]

impl<T> Shuffleable for [T; 26][src]

impl<T> Shuffleable for [T; 27][src]

impl<T> Shuffleable for [T; 28][src]

impl<T> Shuffleable for [T; 29][src]

impl<T> Shuffleable for [T; 30][src]

impl<T> Shuffleable for [T; 31][src]

impl<T> Shuffleable for [T; 32][src]

impl<T> Shuffleable for [T][src]

Loading content...