Genome builder basics
This commit is contained in:
parent
23d9ab696c
commit
fdb5e59eff
5 changed files with 86 additions and 5 deletions
|
|
@ -11,3 +11,12 @@ pub enum GeneType {
|
|||
Consumer,
|
||||
Modifier,
|
||||
}
|
||||
|
||||
impl Gene {
|
||||
pub fn new(place_str: impl Into<String>, kind: GeneType) -> Self {
|
||||
Self {
|
||||
place: place_str.into(),
|
||||
kind,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue