MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / match_instance

Method match_instance

src/analysis/callgraph/mod.rs:59–61  ·  view source on GitHub ↗
(&self, other: &Instance<'tcx>)

Source from the content-addressed store, hash-verified

57 CallGraphNode::WithBody(inst) | CallGraphNode::WithoutBody(inst) => inst,
58 }
59 }
60
61 pub fn match_instance(&self, other: &Instance<'tcx>) -> bool {
62 matches!(self, CallGraphNode::WithBody(inst) | CallGraphNode::WithoutBody(inst) if inst == other)
63 }
64}

Callers 1

instance_to_indexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected