pub struct Graph { /* private fields */ }
Expand description
The graph type
Implementations§
Source§impl Graph
impl Graph
Sourcepub fn push_evaluation(&mut self, node: Index)
pub fn push_evaluation(&mut self, node: Index)
Push evaluation of the graph from the specified outlets on the given node.
- For each outlet on the given node, evaluate the output and use it to evaluate the input for each child inlet connected to this outlet.
- Repeat this for each child in BFS order.
Sourcepub fn pull_evaluation(&mut self, _node: Index, _inlets: &[Inlet])
pub fn pull_evaluation(&mut self, _node: Index, _inlets: &[Inlet])
Pull evaluation of the graph from the specified outlets on the given node.
This causes the graph to performa DFS through each of the inlets to find the deepest nodes. Evaluation occurs as though a “push” was sent simultaneously to each of the deepest nodes. Outlets are only calculated once per node. If an outlet value is required more than once, it will be borrowed accordingly.
Auto Trait Implementations§
impl Freeze for Graph
impl !RefUnwindSafe for Graph
impl !Send for Graph
impl !Sync for Graph
impl Unpin for Graph
impl !UnwindSafe for Graph
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