pub struct Species;
Trait Implementations§
source§impl Generate for Species
impl Generate for Species
fn gen_gender(rng: &mut impl Rng) -> Gender
fn gen_age_years(rng: &mut impl Rng) -> u16
fn gen_years_from_age(rng: &mut impl Rng, age: &Age) -> u16
fn age_from_years(years: u16) -> Age
fn gen_size(rng: &mut impl Rng, age_years: u16, gender: &Gender) -> Size
fn regenerate(rng: &mut impl Rng, npc: &mut NpcData)
Auto Trait Implementations§
impl Freeze for Species
impl RefUnwindSafe for Species
impl Send for Species
impl Sync for Species
impl Unpin for Species
impl UnwindSafe for Species
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more