mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 00:00:03 +03:00
6bd791f2f4
Co-authored-by: Shao Yang Hong <shaoyang.hong@ninjavan.co>
9 lines
272 B
Markdown
9 lines
272 B
Markdown
### Structs
|
|
|
|
Rust has three struct types: a classic C struct, a tuple struct, and a unit struct.
|
|
|
|
#### Book Sections
|
|
|
|
- [Structures](https://doc.rust-lang.org/book/ch05-01-defining-structs.html)
|
|
- [Method Syntax](https://doc.rust-lang.org/book/ch05-03-method-syntax.html)
|