MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rust_has_impl

Function rust_has_impl

tests/test_extraction_inheritance.c:1510–1518  ·  view source on GitHub ↗

Rust helper: check impl_traits array. */

Source from the content-addressed store, hash-verified

1508
1509/* Rust helper: check impl_traits array. */
1510static int rust_has_impl(CBMFileResult *r, const char *trait_name, const char *struct_name) {
1511 for (int i = 0; i < r->impl_traits.count; i++) {
1512 CBMImplTrait *it = &r->impl_traits.items[i];
1513 if (it->trait_name && strcmp(it->trait_name, trait_name) == 0 && it->struct_name &&
1514 strcmp(it->struct_name, struct_name) == 0)
1515 return 1;
1516 }
1517 return 0;
1518}
1519
1520typedef struct {
1521 const char *src;

Callers 1

run_rust_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected