File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1057,6 +1057,10 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
1057
1057
/// The `Deref` trait is used to specify the functionality of dereferencing
1058
1058
/// operations like `*v`.
1059
1059
///
1060
+ /// `Deref` also enables ['`Deref` coercions'][coercions].
1061
+ ///
1062
+ /// [coercions]: ../../book/deref-coercions.html
1063
+ ///
1060
1064
/// # Examples
1061
1065
///
1062
1066
/// A struct with a single field which is accessible via dereferencing the
@@ -1111,6 +1115,10 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
1111
1115
/// The `DerefMut` trait is used to specify the functionality of dereferencing
1112
1116
/// mutably like `*v = 1;`
1113
1117
///
1118
+ /// `DerefMut` also enables ['`Deref` coercions'][coercions].
1119
+ ///
1120
+ /// [coercions]: ../../book/deref-coercions.html
1121
+ ///
1114
1122
/// # Examples
1115
1123
///
1116
1124
/// A struct with a single field which is modifiable via dereferencing the
You can’t perform that action at this time.
0 commit comments