1 2 3 4 5 6 7
use std::vec::Vec; pub trait Reproducible: Sized { /// create new childrens from a father and a mother fn reproduce_with(&self, other: &Self) -> Vec<Self>; }
1 2 3 4 5 6 7
use std::vec::Vec; pub trait Reproducible: Sized { /// create new childrens from a father and a mother fn reproduce_with(&self, other: &Self) -> Vec<Self>; }