Update references in `book/src/04_traits` (#46)
This commit is contained in:
parent
46e2dcb2b9
commit
d2be52f32f
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
|
@ -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`
|
||||||
|
|
Loading…
Reference in New Issue