Trait neat::GenerateRandomCollection
source · pub trait GenerateRandomCollection<T>where
T: GenerateRandom,{
// Required method
fn gen_random(rng: &mut impl Rng, amount: usize) -> Self;
}
Expand description
Blanket trait used on collections that contain objects implementing GenerateRandom
Required Methods§
sourcefn gen_random(rng: &mut impl Rng, amount: usize) -> Self
fn gen_random(rng: &mut impl Rng, amount: usize) -> Self
Generate a random collection of the inner objects with a given amount
Object Safety§
This trait is not object safe.