Trait soroban_sdk::prng::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>