1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-20 14:31:15 +02:00

Mention that there are other receiver types

This commit is contained in:
Martin Geisler 2022-12-27 18:16:21 +01:00 committed by GitHub
parent c7eff6b85e
commit 82a2f4c423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,3 +13,5 @@ are other possible receivers for a method:
transmitted.
* No receiver: this becomes a static method on the struct. Typically used to
create constructors which are called `new` by convention.
There are even more types, e.g., `Box<Self>`.