(&self)
| 51 | |
| 52 | impl<'tcx> CallGraphNode<'tcx> { |
| 53 | pub fn instance(&self) -> &Instance<'tcx> { |
| 54 | match self { |
| 55 | CallGraphNode::WithBody(inst) | CallGraphNode::WithoutBody(inst) => inst, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | pub fn match_instance(&self, other: &Instance<'tcx>) -> bool { |
| 60 | matches!(self, CallGraphNode::WithBody(inst) | CallGraphNode::WithoutBody(inst) if inst == other) |
no outgoing calls
no test coverage detected