#[derive(PartialEq,Eq,Debug)]
struct Tukan;
fn main() {
let pair = Box::new((Tukan, Tukan));
//then later
let &(ref m, ref c) = &*pair;
let (ref m, ref c) = *pair;
let (m, c) = &*pair;
//and can also use ref explicitly
let (ref m1, ref c1) = &*pair;
let res = *m == * m1;
assert!(res);
}
Is some pattern more idiomatic? Or it does not not matter?