mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-14 16:37:14 +00:00
4f7ff5d9c7
as a totally newbie to Rust, I don't know panic statement from https://doc.rust-lang.org/book/ and rustlings in the beginning. After a hard searching of [should_panic], then I figure out panic statement. So it's helpful to tell the learner that write a panic statement here. |
||
---|---|---|
.. | ||
README.md | ||
structs1.rs | ||
structs2.rs | ||
structs3.rs |
Structs
Rust has three struct types: a classic C struct, a tuple struct, and a unit struct.