proptest::strategy

Trait Shuffleable

Source
pub trait Shuffleable {
    // Required methods
    fn shuffle_len(&self) -> usize;
    fn shuffle_swap(&mut self, a: usize, b: usize);
}
Expand description

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§

Source

fn shuffle_len(&self) -> usize

Return the length of this collection.

Source

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

Swap the elements at the given indices.

Implementations on Foreign Types§

Source§

impl<T> Shuffleable for [T; 0]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 1]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 2]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 3]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 4]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 5]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 6]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 7]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 8]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 9]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 10]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 11]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 12]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 13]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 14]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 15]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 16]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 17]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 18]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 19]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 20]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 21]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 22]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 23]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 24]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 25]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 26]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 27]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 28]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 29]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 30]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 31]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T; 32]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for [T]

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for VecDeque<T>

Source§

fn shuffle_len(&self) -> usize

Source§

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

Source§

impl<T> Shuffleable for Vec<T>

Source§

fn shuffle_len(&self) -> usize

Source§

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

Implementors§