Crate ref_eq [] [src]

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));

Functions

ref_eq

Determine if two borrowed pointers point to the same thing.