if x: Rc<T> and x.clone() is sugar for Rc::clone(&x) why does the book recommend the latter?
-
-
not sure what this means -- do you mean all instances of `x.clone()` you see are calls to Rc::clone, not other Clone impls?
-
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();
- 1 more reply
New conversation -
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.