MCPcopy Index your code
hub / github.com/CodeSentryAI/lockbud / instance

Method instance

src/analysis/callgraph/mod.rs:53–57  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

51
52impl<'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)

Callers 9

closure_defsite_argsFunction · 0.80
collect_manual_dropFunction · 0.80
collect_uninitMethod · 0.80
collect_condvarsMethod · 0.80
detect_condvar_misuseMethod · 0.80
collect_atomicsMethod · 0.80
detectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected