Skip to content

elizaespinoza/treina-rust

Repository files navigation

Rust exercises for Alura's Rust course


Loading
timeline
        title Rust training
        section A linguagem de programação performática e segura
          Basic syntax : structype : constante : escopo
               : funcoes
          Control Structures : condicional : repeticoes : repfor : matchexp
          Language details : ownership : patmatch : erros
        section Aprenda mais sobre tipos
          Arrays : unibiodim : uisize
          Enums : diaenum : color
          Options : optype : letconstruct
          Vectors : vecnotas : whilenotas : fornotas : capacidade
          Structs : conta

Topics

  • The exercises are separated by topic and are in the src folder.

1. Rust: a linguagem de programação performática e segura

  1. Basic syntax
    1. Primitive types
    2. Scope and Shadowning
    3. Declare functions
  2. Control Structures
    1. Conditionals
    2. Working with loops
    3. Working with for and ranges
    4. Match statement
  3. Language details
    1. Ownership
    2. Pattern matching
    3. Error treatment

Rust: aprenda mais sobre tipos

  1. Arrays
    1. Set multidimensional arrays
    2. Usize and isize
  2. Enums
    1. Create types using enums
    2. Pass values to an enum
  3. Options
    1. Optional types
    2. Using if let construct
  4. Vectors
    1. Vectors with dynamic size
    2. Accesing vectors with while
    3. Iterating over vectors with for
    4. Memory allocation and capacity
  5. Structs
    1. Creating structs and add methods in it

Running the exercises

  • Run main.rs
cargo run
  • Run a specific file
rustc src/exemplos/sintaxe-basica/structype.rs

./structype.rs

About

Exercises adapted from Alura's Rust courses

Topics

Resources

Stars

Watchers

Forks

Languages