rustlings-solutions icon indicating copy to clipboard operation
rustlings-solutions copied to clipboard

:crab: Solutions for rustlings exercises

rustlings 🦀❤️

Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!

Topic wise solutions:

intro

  • intro1
  • intro2

variables

  • variables1
  • variables2
  • variables3
  • variables4
  • variables5
  • variables6

functions

  • functions1
  • functions2
  • functions3
  • functions4
  • functions5

if

  • if1
  • if2
  • if3

quiz1

  • quiz1

primitive_types

  • primitive_types1
  • primitive_types2
  • primitive_types3
  • primitive_types4
  • primitive_types5
  • primitive_types6

vecs

  • vecs1
  • vecs2

move_semantics

  • move_semantics1
  • move_semantics2
  • move_semantics3
  • move_semantics4
  • move_semantics5
  • move_semantics6

structs

  • structs1
  • structs2
  • structs3

enums

  • enums1
  • enums2
  • enums3

strings

  • strings1
  • strings2
  • strings3
  • strings4

modules

  • modules1
  • modules2
  • modules3

hashmaps

  • hashmaps1
  • hashmaps2
  • hashmaps3

quiz2

  • quiz2

options

  • options1
  • options2
  • options3

error_handling

  • errors1
  • errors2
  • errors3
  • errors4
  • errors5
  • errors6

generics

  • generics1
  • generics2

traits

  • traits1
  • traits2
  • traits3
  • traits4
  • traits5

quiz3

  • quiz3

lifetimes

  • lifetimes1
  • lifetimes2
  • lifetimes3

tests

  • tests1
  • tests2
  • tests3
  • tests4

iterators

  • iterators1
  • iterators2
  • iterators3
  • iterators4
  • iterators5

smart pointers

  • arc1
  • box1
  • cow1
  • rc1

threads

  • threads1
  • threads2
  • threads3

macros

  • macros1
  • macros2
  • macros3
  • macros4

clippy

  • clippy1
  • clippy2
  • clippy3

conversions

  • using_as
  • from_into
  • from_str
  • try_from_into
  • as_ref_mut