Compares pointers for equality.
This is the same as using the `==` operator, but less generic: the arguments
have to be `Pointer`s, not anything that implements PartialEq.
Because `funty` types do not have any implicit type coërcion, this is less
necessary than the corresponding `core::ptr` function.
When comparing wide pointers, both the address and the metadata are tested for
equality. However, note that comparing trait object pointers
(`*const dyn Trait`) is unreliable: pointers to values of the same underlying
type can compare inequal (because vtables are duplicated in multiple codegen
units), and pointers to values of _different_ underlying type can compare equal
(since identical vtables can be deduplicated within a codegen unit).
# Original
[`core::ptr::eq`]
# Examples
```rust
use pointdexter::prelude::*;
let five = 5;
let other_five = 5;
let five_ref = &five;
let same_five_ref = &five;
let other_five_ref = &other_five;
assert!(five_ref == same_five_ref);
assert!(ptxr::eq(five_ref.into(), same_five_ref.into()));
assert!(five_ref == other_five_ref);
assert!(!ptxr::eq(five_ref.into(), other_five_ref.into()));
```
Slices are also compared by their length (fat pointers):
```rust
use pointdexter::prelude::*;
let a = [1, 2, 3];
assert!(ptxr::eq((&a[..3]).into(), (&a[..3]).into()));
assert!(!ptxr::eq((&a[..2]).into(), (&a[..3]).into()));
assert!(!ptxr::eq((&a[0..2]).into(), (&a[1..3]).into()));
```