Is any way to know references are referencing the same object?

I'm not sure that i really need pointers comparison. I'm just learning Rust, and may be i'm on the wrong way. May be, it is not "Rust-way" to compair equality of references.

This is a situation, where i'v got my question - following the chapter from "The Book" Associated Types, i'm trying to make less trivial implementation of Graph trait from this chapter:

trait Graph {
    type N;
    type E;

    fn has_edge(&self, &Self::N, &Self::N) -> bool;
    fn edges(&self, &Self::N) -> Vec<Self::E>;
}

As example, a have chosen for implementation a vector of pairs of references to Node structs

type MyGraph<'a> = Vec<(&'a Node, &'a Node)>;

impl Graph for MyGraph {
    type N = Node;
...

Of course, Nodes have to be stored/owned elsewhere with longer lifetime, but it is not the point of my question.

In order to implement such Graph trait, i have to test that parameters of methods and one of elements of pairs from vector are referencing the same Node object. Even i'll choose another implementation of Graph trait, the problem will remain the same due to specification of Graph trait (parameter by reference). What would "The Book" imply, If Graph trait was implemented less trivial?