(&self, graph: Graph)
| 4551 | } |
| 4552 | |
| 4553 | fn get_graph_annotations(&self, graph: Graph) -> Result<Vec<GraphAnnotation>> { |
| 4554 | if graph.get_context() != *self { |
| 4555 | return Err(runtime_error!("The graph is in a different context")); |
| 4556 | } |
| 4557 | let cell = self.body.borrow(); |
| 4558 | Ok(cell |
| 4559 | .graphs_annotations |
| 4560 | .get(&graph.get_id()) |
| 4561 | .cloned() |
| 4562 | .unwrap_or_default()) |
| 4563 | } |
| 4564 | |
| 4565 | pub(super) fn downgrade(&self) -> WeakContext { |
| 4566 | WeakContext { |
no test coverage detected