Rustlings 4.4.0 exercises

A boring week started and I used the time for trying out Rustlings.

These are small exercises to get you used to reading and writing Rust code. Quite interesting how this tool works and gives you some hints on features of Rust.

Got it successfully finished in short time.


> rustlings verify
✓ Successfully ran exercises/variables/variables1.rs! ✓ Successfully ran exercises/variables/variables2.rs! ✓ Successfully ran exercises/variables/variables3.rs! ✓ Successfully ran exercises/variables/variables4.rs! ✓ Successfully ran exercises/variables/variables5.rs! ✓ Successfully ran exercises/variables/variables6.rs! ✓ Successfully ran exercises/functions/functions1.rs! ✓ Successfully ran exercises/functions/functions2.rs! ✓ Successfully ran exercises/functions/functions3.rs! ✓ Successfully ran exercises/functions/functions4.rs! ✓ Successfully ran exercises/functions/functions5.rs! ✓ Successfully tested exercises/if/if1.rs ✓ Successfully tested exercises/if/if2.rs ✓ Successfully tested exercises/quiz1.rs ✓ Successfully ran exercises/move_semantics/move_semantics1.rs! ✓ Successfully ran exercises/move_semantics/move_semantics2.rs! ✓ Successfully ran exercises/move_semantics/move_semantics3.rs! ✓ Successfully ran exercises/move_semantics/move_semantics4.rs! ✓ Successfully ran exercises/primitive_types/primitive_types1.rs! ✓ Successfully ran exercises/primitive_types/primitive_types2.rs! ✓ Successfully ran exercises/primitive_types/primitive_types3.rs! ✓ Successfully tested exercises/primitive_types/primitive_types4.rs ✓ Successfully ran exercises/primitive_types/primitive_types5.rs! ✓ Successfully tested exercises/primitive_types/primitive_types6.rs ✓ Successfully tested exercises/structs/structs1.rs ✓ Successfully tested exercises/structs/structs2.rs ✓ Successfully tested exercises/structs/structs3.rs ✓ Successfully ran exercises/enums/enums1.rs! ✓ Successfully ran exercises/enums/enums2.rs! ✓ Successfully tested exercises/enums/enums3.rs ✓ Successfully ran exercises/modules/modules1.rs! ✓ Successfully ran exercises/modules/modules2.rs! ✓ Successfully tested exercises/collections/vec1.rs ✓ Successfully tested exercises/collections/vec2.rs ✓ Successfully tested exercises/collections/hashmap1.rs ✓ Successfully tested exercises/collections/hashmap2.rs ✓ Successfully ran exercises/strings/strings1.rs! ✓ Successfully ran exercises/strings/strings2.rs! ✓ Successfully ran exercises/quiz2.rs! ✓ Successfully tested exercises/error_handling/errors1.rs ✓ Successfully tested exercises/error_handling/errors2.rs ✓ Successfully ran exercises/error_handling/errors3.rs! ✓ Successfully tested exercises/error_handling/errorsn.rs ✓ Successfully ran exercises/generics/generics1.rs! ✓ Successfully tested exercises/generics/generics2.rs ✓ Successfully tested exercises/generics/generics3.rs ✓ Successfully ran exercises/option/option1.rs! ✓ Successfully ran exercises/option/option2.rs! ✓ Successfully tested exercises/error_handling/result1.rs ✓ Successfully tested exercises/traits/traits1.rs ✓ Successfully tested exercises/traits/traits2.rs ✓ Successfully tested exercises/tests/tests1.rs ✓ Successfully tested exercises/tests/tests2.rs ✓ Successfully tested exercises/tests/tests3.rs ✓ Successfully tested exercises/quiz3.rs ✓ Successfully tested exercises/standard_library_types/box1.rs ✓ Successfully ran exercises/standard_library_types/arc1.rs! ✓ Successfully ran exercises/standard_library_types/iterators1.rs! ✓ Successfully tested exercises/standard_library_types/iterators2.rs ✓ Successfully tested exercises/standard_library_types/iterators3.rs ✓ Successfully tested exercises/standard_library_types/iterators4.rs ✓ Successfully tested exercises/standard_library_types/iterators5.rs ✓ Successfully ran exercises/threads/threads1.rs! ✓ Successfully ran exercises/macros/macros1.rs! ✓ Successfully ran exercises/macros/macros2.rs! ✓ Successfully ran exercises/macros/macros3.rs! ✓ Successfully ran exercises/macros/macros4.rs! ✓ Successfully tested exercises/quiz4.rs ✓ Successfully compiled exercises/clippy/clippy1.rs! ✓ Successfully compiled exercises/clippy/clippy2.rs! ✓ Successfully tested exercises/conversions/using_as.rs ✓ Successfully tested exercises/conversions/from_into.rs ✓ Successfully tested exercises/conversions/try_from_into.rs ✓ Successfully tested exercises/conversions/as_ref_mut.rs ✓ Successfully tested exercises/conversions/from_str.rs

Now I'm collecting ideas for new exercises for Rustlings. I'm often got stuck with type handling at the beginning. Also stuff using pointers in C language for accessing positions of data, is in Rust tricky, if you use the same mindset of patterns. So seems to be a good idea to fiddle around patterns in Rust language. We'll see...