MCPcopy Create free account
hub / github.com/apache/tvm-ffi / __ffi_eq__

Method __ffi_eq__

tests/python/test_dataclass_compare.py:1313–1314  ·  view source on GitHub ↗
(self, other: _PyCmp, fn_eq: _Callable_cmp[..., _Any_cmp])

Source from the content-addressed store, hash-verified

1311 return fn_hash(self.key)
1312
1313 def __ffi_eq__(self, other: _PyCmp, fn_eq: _Callable_cmp[..., _Any_cmp]) -> bool:
1314 return fn_eq(self.key, other.key)
1315
1316 def __ffi_compare__(self, other: _PyCmp, fn_cmp: _Callable_cmp[..., _Any_cmp]) -> int:
1317 return fn_cmp(self.key, other.key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected