Update references in book/src/04_traits (#46)

This commit is contained in:
Shinya Fujino 2024-05-24 17:27:29 +09:00 committed by GitHub
parent 46e2dcb2b9
commit d2be52f32f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 13 additions and 9 deletions

View file

@ -152,3 +152,7 @@ The rationale is the same as for [explicit type annotations on function paramete
each function signature is a contract between the caller and the callee, and the terms must be explicitly stated. each function signature is a contract between the caller and the callee, and the terms must be explicitly stated.
This allows for better error messages, better documentation, less unintentional breakages across versions, This allows for better error messages, better documentation, less unintentional breakages across versions,
and faster compilation times. and faster compilation times.
## References
- The exercise for this section is located in `exercises/04_traits/05_trait_bounds`

View file

@ -117,4 +117,4 @@ bunch of text data and that a subset of it matches what you need, therefore you'
## References ## References
- The exercise for this section is located in `exercises/04_traits/05_str_slice` - The exercise for this section is located in `exercises/04_traits/06_str_slice`

View file

@ -92,4 +92,4 @@ We'll examine later in the course the "safest" use cases for deref coercion: sma
## References ## References
- The exercise for this section is located in `exercises/04_traits/06_deref` - The exercise for this section is located in `exercises/04_traits/07_deref`

View file

@ -80,4 +80,4 @@ and one for the length.
## References ## References
- The exercise for this section is located in `exercises/04_traits/07_sized` - The exercise for this section is located in `exercises/04_traits/08_sized`

View file

@ -130,4 +130,4 @@ In most cases, the target type is either:
## References ## References
- The exercise for this section is located in `exercises/04_traits/08_from` - The exercise for this section is located in `exercises/04_traits/09_from`

View file

@ -115,4 +115,4 @@ To recap:
## References ## References
- The exercise for this section is located in `exercises/04_traits/09_assoc_vs_generic` - The exercise for this section is located in `exercises/04_traits/10_assoc_vs_generic`

View file

@ -108,4 +108,4 @@ Remember that you can use `cargo expand` (or your IDE) to explore the code gener
## References ## References
- The exercise for this section is located in `exercises/04_traits/10_clone` - The exercise for this section is located in `exercises/04_traits/11_clone`

View file

@ -114,4 +114,4 @@ struct MyStruct {
## References ## References
- The exercise for this section is located in `exercises/04_traits/11_copy` - The exercise for this section is located in `exercises/04_traits/12_copy`

View file

@ -53,4 +53,4 @@ error[E0184]: the trait `Copy` cannot be implemented for this type; the type has
## References ## References
- The exercise for this section is located in `exercises/04_traits/12_drop` - The exercise for this section is located in `exercises/04_traits/13_drop`

View file

@ -9,4 +9,4 @@ You'll have minimal guidance this time—just the exercise description and the t
## References ## References
- The exercise for this section is located in `exercises/04_traits/13_outro` - The exercise for this section is located in `exercises/04_traits/14_outro`