mirror of
https://github.com/rust-lang/book.git
synced 2026-05-17 19:01:47 -04:00
Add Deref trait to overload the deref operator in appendix table
Fixes #1870.
This commit is contained in:
@@ -27,7 +27,7 @@ overload that operator is listed.
|
||||
| `&&` | `expr && expr` | Short-circuiting logical AND | |
|
||||
| `*` | `expr * expr` | Arithmetic multiplication | `Mul` |
|
||||
| `*=` | `var *= expr` | Arithmetic multiplication and assignment | `MulAssign` |
|
||||
| `*` | `*expr` | Dereference | |
|
||||
| `*` | `*expr` | Dereference | `Deref` |
|
||||
| `*` | `*const type`, `*mut type` | Raw pointer | |
|
||||
| `+` | `trait + trait`, `'a + trait` | Compound type constraint | |
|
||||
| `+` | `expr + expr` | Arithmetic addition | `Add` |
|
||||
|
||||
Reference in New Issue
Block a user