ref_eq 1.0.0

Determine if two borrowed pointers point to the same thing.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 1.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 104.41 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • emosenkis/ref_eq
    4 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • emosenkis

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