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

Function rust_has_impl

tests/test_extraction_inheritance.c:1514–1522  ·  view source on GitHub ↗

Rust helper: check impl_traits array. */

Source from the content-addressed store, hash-verified

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

Callers 1

run_rust_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected