1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-27 16:25:43 +02:00

Add speaker note about multiple impl blocks (#2606)

This commit is contained in:
Nicole L 2025-02-05 16:10:55 -08:00 committed by GitHub
parent 12fb4379f7
commit 8f01344757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,4 +39,9 @@ fn main() {
implementations can rely on all the methods of the trait. In this case,
`greet` is provided, and relies on `talk`.
- Multiple `impl` blocks are allowed for a given type. This includes both
inherent `impl` blocks and trait `impl` blocks. Likewise multiple traits can
be implemented for a given type (and often types implement many traits!).
`impl` blocks can even be spread across multiple modules/files.
</details>