Decision Workspace
pointer-identity vs ref_eq vs same
Side-by-side comparison of Rust crates
39
pointer-identity
growingv0.1.1
Wrapper type to treat the pointer address of types as identity rather than the value
43
ref_eq
growingv1.0.0
Determine if two borrowed pointers point to the same thing.
38
same
growingv0.1.0
Traits for testing identity of objects.
Core Metrics
| pointer-identity | ref_eq | same | |
|---|---|---|---|
| Health Score | 39 | 43 | 38 |
| Total Downloads | 3.0K | 11.0K | 4.2K |
| 30d Downloads | 6 | 102 | 50 |
| Dependents | 0 | 8 | 1 |
| Releases | 2 | 2 | 1 |
| Last Updated | 857d ago | 3491d ago | 2792d ago |
| Age | 2y 4m | 9y 6m | 7y 7m |
Health Breakdown
pointer-identity
Maintenance
4
Quality
16
Community
5
Popularity
4
Documentation
10
ref_eq
Maintenance
3
Quality
21
Community
6
Popularity
5
Documentation
8
same
Maintenance
1
Quality
18
Community
7
Popularity
4
Documentation
8
Technical Details
| pointer-identity | ref_eq | same | |
|---|---|---|---|
| Version | 0.1.1 | 1.0.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT/Apache-2.0 | MITNFA |
| Dependencies | 6 | 0 | 0 |
| Crate Size | 5KB | 844B | 3KB |
| Features | 3 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | — | — |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •ref_eq leads with a health score of 43/100, but none of the options score above 80.
- •⚠ pointer-identity, ref_eq, same have not been updated in over a year.
- •pointer-identity, same are pre-1.0 — API may change.