documented genome tools
This commit is contained in:
parent
edb5ed4b1e
commit
fc4d9d2ee3
4 changed files with 106 additions and 11 deletions
|
|
@ -39,7 +39,7 @@ pub enum GeneType {
|
|||
},
|
||||
/// Modifies flow
|
||||
Modifier {
|
||||
modify_flow: fn(GeneContext) -> Option<Flow>
|
||||
modify_flow: fn(GeneContext) -> Flow
|
||||
},
|
||||
/// Conditionally passes through flow. Acts like transport.
|
||||
Trigger {
|
||||
|
|
@ -101,7 +101,7 @@ impl GeneType {
|
|||
Self::Consumer { consume: consumer_function }
|
||||
}
|
||||
/// Creates modifier with modifier function.
|
||||
pub fn modifier(modifier_function: fn(GeneContext) -> Option<Flow>) -> Self {
|
||||
pub fn modifier(modifier_function: fn(GeneContext) -> Flow) -> Self {
|
||||
Self::Modifier { modify_flow: modifier_function }
|
||||
}
|
||||
/// Creates trigger with distribution between all children.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue