rustlings
rustlings copied to clipboard
:crab: Small exercises to get you used to reading and writing Rust code!
Hello! I'm a beginner in Rust and just finished the Rustling for the first time! I have to admit that `try_from_into` gave me the most problems, as I was struggling...
Why is this way of solving the challenge: `fn main() { let y: Option = Some(Point { x: 100, y: 200 }); match y { Some(ref p) => println!("Co-ordinates are...
- I think it would be very helpful to get some more information about the code when someone has completed it. Maybe even a reference to the rust docs. Sometimes...
It teaches about shadowing, which is not really useful if used like this (nor is it appropriate at this point in the curriculum).
The comment in the enums3.rs exercise: ``` // TODO: create a match expression to process the different message // variants // Remember: When passing a tuple as a function argument,...
At the end of the course, a unique number could be generated to identify that the student has completed the course. It could be randomly generated, or generated from a...
Nothing happens when execute `rustlings run next` command if `// I AM NOT DONE` was not removed from exercise and exercise compiles without errors and tests are passed.
When following the exercises, it is nice to check the suggested reading. For the smart_pointers exercises, it includes _a lot_ of reading: - [Smart Pointers](https://doc.rust-lang.org/book/ch15-00-smart-pointers.html) -> the full chapter about...