trait Generate {
// Required method
fn gen_name(rng: &mut impl Rng, age: &Age, gender: &Gender) -> String;
// Provided method
fn regenerate(rng: &mut impl Rng, npc: &mut NpcData) { ... }
}
Required Methods§
Provided Methods§
fn regenerate(rng: &mut impl Rng, npc: &mut NpcData)
Object Safety§
This trait is not object safe.