Function std::cell::clone_refUnstable
[-] [+]
[src]
pub fn clone_ref<T>(orig: &Ref<'b, T>) -> Ref<'b, T> where T: Clone
Copy a Ref
.
The RefCell
is already immutably borrowed, so this cannot fail.
A Clone
implementation would interfere with the widespread
use of r.borrow().clone()
to clone the contents of a RefCell
.