mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-01 17:34:25 +02:00
Update points-polygons.md (#234)
Adding speaker notes with key things that might be present in the solution.
This commit is contained in:
parent
4588d95427
commit
585509bb0a
@ -39,3 +39,15 @@ tests pass:
|
||||
#[allow(dead_code)]
|
||||
fn main() {}
|
||||
```
|
||||
|
||||
<details>
|
||||
|
||||
Since the method signatures are missing from the problem statements, the key part
|
||||
of the exercise is to specify those correctly.
|
||||
|
||||
Other interesting parts of the exercise:
|
||||
|
||||
* Derive a `Copy` trait for some structs, as in tests the methods sometimes don't borrow their arguments.
|
||||
* Discover that `Add` trait must be implemented for two objects to be addable via "+".
|
||||
|
||||
</details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user