I am working on a Rust program where I got stuck on a problem that can be reduced to following case:
struct Pair