(&mut self, node: PassNode<'a, Ctx>)
| 132 | impl<'a, Ctx> Graph<'a, Ctx> { |
| 133 | pub fn new() -> Self { Self { nodes: Vec::new() } } |
| 134 | pub fn push(&mut self, node: PassNode<'a, Ctx>) -> &mut Self { |
| 135 | self.nodes.push(node); self |
| 136 | } |
| 137 | |
| 138 | /// Compute execution order. Returns indices into `self.nodes`. |
| 139 | pub fn schedule(&self) -> Result<Vec<usize>, GraphError> { |
no outgoing calls