We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef92d4 commit 303203fCopy full SHA for 303203f
library/alloc/src/borrow.rs
@@ -103,6 +103,11 @@ where
103
/// is desired, `to_mut` will obtain a mutable reference to an owned
104
/// value, cloning if necessary.
105
///
106
+/// If you need reference-counting pointers, note that
107
+/// [`Rc::make_mut`][crate::rc::Rc::make_mut] and
108
+/// [`Arc::make_mut`][crate::sync::Arc::make_mut] can provide clone-on-write
109
+/// functionality as well.
110
+///
111
/// # Examples
112
113
/// ```
0 commit comments