soroban_sdk::prng

Trait Shuffle

Source
pub trait Shuffle {
    // Required method
    fn shuffle(&mut self, prng: &Prng);
}
Expand description

Implemented by types that support being shuffled by a Prng.

Required Methods§

Source

fn shuffle(&mut self, prng: &Prng)

Shuffles the value with the Prng.

Implementors§

Source§

impl<T> Shuffle for Vec<T>