finished ch7.3

This commit is contained in:
2025-01-15 11:58:45 -07:00
parent c6299ee523
commit 4c4dd464dd
4 changed files with 108 additions and 22 deletions

View File

@ -513,12 +513,13 @@ fn main() {
}
```
output
```
[src/main.rs:10:16] 30 * scale = 60
[src/main.rs:14:5] &rect1 = Rectangle {
width: 60,
height: 50,
}
```
## Methods
Fucntions that are more closely related to structs