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 526dddc commit 611306aCopy full SHA for 611306a
src/methods-and-traits/methods.md
@@ -77,6 +77,8 @@ Key Points:
77
- Developers may choose to use methods to take advantage of method receiver
78
syntax and to help keep them more organized. By using methods we can keep
79
all the implementation code in one predictable place.
80
+ - Note that methods can also be called like associated functions by explicitly
81
+ passing the receiver in, e.g. `CarRace::add_lap(&mut race, 20)`.
82
- Point out the use of the keyword `self`, a method receiver.
83
- Show that it is an abbreviated term for `self: Self` and perhaps show how
84
the struct name could also be used.
0 commit comments