diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-07-23 12:57:22 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-07-23 12:57:22 -0400 |
| commit | a319d32a57a7ad758e2719b096fdfa6fe53664b0 (patch) | |
| tree | edd8c1bc0af115d1c38d8744e054175319949e41 /src/libcore | |
| parent | d6a617863761a4023b437bd70288abc77ac20554 (diff) | |
| download | rust-a319d32a57a7ad758e2719b096fdfa6fe53664b0.tar.gz rust-a319d32a57a7ad758e2719b096fdfa6fe53664b0.zip | |
Link Deref{,Mut} to TRPL on coercions.
FIxes #26927
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index c2a9b8c8308..0f9282a1455 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1057,6 +1057,10 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> { /// The `Deref` trait is used to specify the functionality of dereferencing /// operations like `*v`. /// +/// `Deref` also enables ['`Deref` coercions'][coercions]. +/// +/// [coercions]: ../../book/deref-coercions.html +/// /// # Examples /// /// 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 { /// The `DerefMut` trait is used to specify the functionality of dereferencing /// mutably like `*v = 1;` /// +/// `DerefMut` also enables ['`Deref` coercions'][coercions]. +/// +/// [coercions]: ../../book/deref-coercions.html +/// /// # Examples /// /// A struct with a single field which is modifiable via dereferencing the |
