ref_eq 1.0.0

Determine if two borrowed pointers point to the same thing.
Documentation

The req_eq crate makes it easy to check reference equality.

Examples

use ref_eq::ref_eq;

let x = 1;
let y = 1;
assert!(ref_eq(&x, &x));
assert!(!ref_eq(&x, &y));