1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-24 16:42:36 +02:00
Nicole L 59bf3bdcfb
Add a slide introducing dyn Trait in Generics (#2108)
I've been thinking it'd be simpler to introduce `dyn Trait` via `&dyn
Trait` rather than waiting for the smart pointers section and `Box<dyn
Trait>`. This PR adds a slide to the Generics section that introduces
`&dyn Trait` and compares it to `&impl Trait`, juxtaposing
monomorphization and static dispatch against type-erasure and dynamic
dispatch. I've then updated the existing trait object slide to call back
to the earlier introduction, and call out that using `Box<dyn Trait>`
gives you an owned trait object rather than a borrowed one.
2024-05-31 09:59:36 -04:00
..
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00

Course Content

The files in this directory make up the content of the course. The files here can include third-party content from ../third_party/ as well.

When we publish a translation of the course, we git restore the src/ and third_party/ directories at the repository root back to the date listed in the POT-Creation-Date header of the translation. It is crucial, that all translatable content lives in those two directories. The other files (such as book.toml and theme/) are not restored and we always use the latest version of them.