if x: Rc<T> and x.clone() is sugar for Rc::clone(&x) why does the book recommend the latter?
Oh sorry! -- I mean that I don't really see Rc::Clone calls used much; mostly .clone() calls. // Not very common let y = Rc::clone(&x); // Seen more often let y = x.clone();
-
-
Honestly, this is the first time I've seen Rc::clone() in more than two years of Rust. I can see the argument in favour (makes it explicit that you're cloning the Rc and not the value inside it) but nobody seems to be actually doing it.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.