alfredodeza/rust-fundamentals
Tentang
Rust Bootcamp Week 2: Rust fundamentals
Pembelajaran dan pendidikanPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliThis repository is part of the Rust Fundamentals course from Pragmatic AI Labs
Rust Fundamentals
Rust Bootcamp week 2: Rust Fundamentals
This week, you will learn how to create a Rust project using Cargo and how all files and components work together. Additionally, you will understand variables, assignment, and controlling flow with logic, loops and other conditional statements. Finally, you'll create functions and get used to the borrowing concept in Rust as well as working with error handling using match.
This is week 2 of the Rust Bootcamp. There are 4 weeks in total:
π‘ Are you just looking for a π Rust template to get started easily with a project? The template has everything you need!
π Watch the Video course
Contents
This week has several examples located in the ./examples directory. Make sure you have Rust installed and you are using Visual Studio Code.
This repository is Codespaces ready, and it is set as a template repository. You can create a new repository from this template and start working on your own with Codespaces. This means that Rust, Copilot, and all the extensions are already installed and configured for you.
Lesson 1: Introduction to Rust
- Overview of project files
- Variable assignment and immutability
- Basics of control flow
- Shadowing variables
Lesson 2: Loops and Control Flow
- Introduction to loops in Rust
- Conditional statements
- The while loop
- The for loop
- Break and continue
- The match expression
Lesson 3: Function Basics
- Introduction to functions
- Return values
- Function arguments
- The borrowing concept
- Using Panic!
- Error handling with match
Lesson 4: Practice Lab
Use the included practice lab to apply the content you've learned in this week. Follow the steps to create your own repository and apply the requirements to complete the lab.
Resources
Coursera Courses
Jelajahi proyek terkait
Memuatβ¦
