mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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. |
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago | |
structs1.rs | 5 years ago | |
structs2.rs | 4 years ago | |
structs3.rs | 3 years ago |
README.md
Structs
Rust has three struct types: a classic C struct, a tuple struct, and a unit struct.