Welcome to my personal Rust Learning Repository! π§ β‘ Here, I write and practice core Rust concepts step-by-step as I master systems programming.
Here is the list of foundational Rust concepts covered in this repository:
| Module / Topic π§© | Description π | File Link π |
|---|---|---|
| Hello World | Basic output formatting, macros, and comments | hello_world.rs |
| Variables & Mutability | Mutable, immutable variables, and variable shadowing | variable.rs |
| Constants | Constant declarations and naming conventions | constants.rs |
| Data Types | Scalar types (integers, floats, booleans, chars) & overflow | data_types.rs |
| Type Casting | Explicit casting with as, parsing strings, and format syntax |
type_casting.rs |
| Operators | Arithmetic, relational, and logical operations | operators.rs |
| Decision Making | Control flows using if, else if, else, and match |
decision_making.rs |
| Loops | Iterating with for, while, and infinite loop |
loops.rs |
| Functions | Functions, parameters, return types, and expressions | function.rs |
| Strings | String literals (&str) vs String objects (String), methods |
string.rs |
| Tuples | Tuple creation, indexing, destructuring, and unit types | tuple.rs |
| Vectors | Dynamic arrays, element manipulation (push, pop), and iteration |
vectors.rs |
| Ownership | Rust memory model, move semantics, and clone() |
ownership.rs |
| Borrowing & References | Immutable (&) vs Mutable (&mut) references |
borrowing_and_references.rs |
| Scope | Block scopes, variable lifetimes, and safe inner borrows | scope.rs |
| Structs | Defining custom data structures with named fields | rust_structs.rs |
| Enums | Defining types with multiple possible variants & pattern matching | rust_enums.rs |
| Match Control Flow | Pattern matching, exhaustive checks, and destructuring | rust_match.rs |
| Implementation Blocks | Method syntax, self parameters, and associated functions | rust_impl.rs |
-
Clone the repository:
git clone https://github.com/siyametj/rust_language.git
-
Navigate into the folder:
cd rust_language -
Build and Run using Cargo:
cargo run
Siyam (@siyametj)
- π GitHub: @siyametj
- π§ Environment: Debian Linux (Power User π)
If you find my learning journey interesting, don't forget to leave a STAR! β