This is so that PtrEq can only be used with allowed pointer types (e.g. Arc), without allowing misuse.
| 41 | #[derive(Clone)] |
| 42 | #[expect(private_bounds)] // This is so that PtrEq can only be used with allowed pointer types (e.g. Arc), without allowing misuse. |
| 43 | pub struct PtrEq<Ptr: PointerType>(Ptr); |
| 44 | |
| 45 | impl<T> PartialEq for PtrEq<Arc<T>> |
| 46 | where |
no outgoing calls
searching dependent graphs…