Function std::cell::clone_ref
[−]
[src]
pub fn clone_ref<T>(orig: &Ref<'b, T>) -> Ref<'b, T> where T: CloneDeprecated since 1.2.0
: moved to a Ref::clone associated function
Copies a Ref`Ref`.
The RefCell`RefCell` is already immutably borrowed, so this cannot fail.
A Clone`Cloneimplementation would interfere with the widespread use ofr.borrow().clone()to clone the contents of aRefCell`.