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 5bef034 commit d664b89Copy full SHA for d664b89
src/libcore/borrow.rs
@@ -191,7 +191,11 @@ pub trait Borrow<Borrowed: ?Sized> {
191
192
/// A trait for mutably borrowing data.
193
///
194
-/// Similar to `Borrow`, but for mutable borrows.
+/// As a companion to [`Borrow<T>`] this trait allows a type to borrow as
195
+/// an underlying type by providing a mutable reference. See [`Borrow<T>`]
196
+/// for more information on borrowing as another type.
197
+///
198
+/// [`Borrow<T>`]: trait.Borrow.html
199
#[stable(feature = "rust1", since = "1.0.0")]
200
pub trait BorrowMut<Borrowed: ?Sized> : Borrow<Borrowed> {
201
/// Mutably borrows from an owned value.
0 commit comments