Apply this Render Layer to a Flow Graph.
(&self, graph: &mut FlowGraph)
| 87 | pub trait RenderLayer: Sized { |
| 88 | /// Apply this Render Layer to a Flow Graph. |
| 89 | fn apply_to_flow_graph(&self, graph: &mut FlowGraph) { |
| 90 | for node in &graph.nodes() { |
| 91 | if let Some(block) = node.basic_block(NativeBlock::new()) { |
| 92 | let new_lines = self.apply_to_block(&block, node.lines().to_vec()); |
| 93 | node.set_lines(new_lines); |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /// Apply this Render Layer to the lines produced by a LinearViewObject for rendering in Linear View. |
| 99 | fn apply_to_linear_object( |
nothing calls this directly
no test coverage detected