Nothing goes right in its time
This commit is contained in:
parent
d07c660e2a
commit
17cadfe2fd
4 changed files with 146 additions and 16 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use crate::node::graph_modifier::GraphModifier;
|
||||
use crate::node::node_modifier::NodeModifier;
|
||||
|
||||
mod graph_modifier;
|
||||
mod node_modifier;
|
||||
|
||||
pub struct Node {
|
||||
children: Vec<Node>,
|
||||
|
|
@ -31,7 +31,7 @@ impl Node {
|
|||
|
||||
return (self.function)(inputs);
|
||||
}
|
||||
pub fn modify_tree(&self) -> GraphModifier {
|
||||
GraphModifier::new(self)
|
||||
pub fn modify_tree<'a>(&'a mut self) -> NodeModifier<'a> {
|
||||
NodeModifier::from_random(self)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue