| Status | Start Date | End Date |
|---|---|---|
| In Progress | 2026-02-24 | N/A |
https://www.udemy.com/course/rust-the-complete-developers-guide/
cd projects/<project_name>
cargo run
# quiet mode (Do not print cargo log messages)
cargo run - qStringsare represented by double quotes"Hello World", while single quotes'are used for representing char (character literal);#[derive[Debug]]tell the compiler to add a list of functions fromDebugtrait to our program;Vecvectors (e.g.vec!["Ace", "Two", "Three"]) are lists that can grow,[]Arrays (e.g.["Ace", "Two", "Three"]) have fixed lenght;- Arrays have a slight performance improvement over Vectors;
- Variables are called bindings in rust;
mutkeywords makes abindingmutable; impkeyword is forInherent Implementations(add a function to a struc), definemethodsandassociated functions(In other programming lanaguges a.k.a.class method);Implicit return- Rust will return the last executed expression if not end with a;(semicolon), this also works inside code blocks like if statements.- Rust does not have imports, dependencies are resolved at root, and don't require imports, however we have
usekeyword to pull specific things into the scope of the file, likeuse rand::rngand using direcly likelet rng = rng();oruse rand::{rng, random, rngs::OsRng};oruse rand;and use likelet rng = rand::rng();