Skip to main content
pelatihan
.org
Learn. Practice. Grow.
Category
EN
Sign in
Sign up
Menu
Rust Curriculum: 2 Chapters, 27 Lessons — pelatihan.org
Home
/
Catalog
/
Rust
/
Curriculum
Curriculum
Rust Curriculum
Learn Rust online with 27 structured lessons, code examples, and 135 quiz questions.
27 lessons
2 chapters
135 questions
Summaries and key points are free to preview. Full lessons, code examples, and quizzes require a subscription.
01
Rust Tutorial
21 lessons
01
Rust HOME
This Rust tutorial homepage introduces a system programming language that prioritizes speed, memory security, and competition. Rust is designed so that developers can build…
02
Rust Intro
This lesson explains the background and the reason why Rust was created. Common problems in low-level system languages such as pointer dereference and buffer overflow are…
03
Rust Get Started
This lesson guides Rust's installation steps and use of its official toolchain. Readers are introduced to rustup to manage the compiler version as well as cargo as a versatile…
04
Rust Syntax
This lesson reviews the basic syntax rules for writing code in Rust. The reader is taught how to arrange function blocks, use curly braces, and end a sentence with a semicolon.…
05
Rust Output
This lesson peels out the technique of displaying text and variable values to the terminal using the Rust output macro. Macros such as print! and println! are used for standard…
06
Rust Comments
This lesson explains how to write comments in Rust program code. Commentary serves to explain the documentation and will be ignored by the compiler when building the program.…
07
Rust Variables
This lesson discusses the declaration of variables and the concept of mutability in Rust. By default, all variables in Rust are immutable (unchangeable) to prevent an unintended…
08
Rust Data Types
This lesson reviews the statically typed data type system in Rust. Rust has scalar types such as integers, floating-points, booleans, and characters, as well as compound types…
09
Rust Constants
This lesson explains the use of constants on Rust using the keyword 'const'. The constant is always fixed, its value must be a compile-time constant, and its data type must be…
10
Rust Operators
This lesson reviews the arithmetic operators, comparisons, logic, and assignments available on Rust. Rust guarantees safe mathematical operation and checks for potential integer…
11
Rust Booleans
This lesson delimits the boolean data type on Rust that has only two possible values: true or false. This type of boolean becomes the foundation for all decision-making logic in…
12
Rust If..Else
This lesson discusses branching using constructions if, else if, and else in Rust. Interestingly, in Rust 'if' is an expression that yields value, so it can be used directly to…
13
Rust Match
This lesson peels out the matching construction in Rust which is a very powerful pattern matching mechanism. Compared to 'switch' in other languages, 'match' in Rust checks for…
14
Rust Loops
This lesson introduces infinite repetition using the keyword 'loop' in Rust. 'loop' will repeat the block of code continuously until it is explicitly stopped by 'break'. In…
15
Rust While Loops
This lesson reviews conditional repetition using the keyword 'while' in Rust. The code within the while block will be executed repeatedly during the value of the condition. Once…
16
Rust For Loops
This lesson discusses the repetition of 'for' in Rust used to iterate data collection or range. Repetition for in Rust is the safest and most efficient way to avoid out-of-bounds…
17
Rust Functions
This lesson reviews the creation of custom functions, the acceptance of parameters, and the return of values in Rust. The function is declared with 'fn' and uses the snake_case…
18
Rust Scope
This lesson discusses the concept of scope and its impact on the lifespan of memory data. In Rust, a variable is only valid as long as it is within the scope of curly braces…
19
Rust Strings
This lesson peels out the text representation in Rust which is divided into string slice (&str) and heap-owned String. Rust requires all UTF-8-formatted strings to be valid to…
20
Rust Ownership
This lesson reviews the most fundamental core concept in Rust language, which is Ownership. Each value in Rust has only one owner variable at a time. When the owner moves, the…
21
Rust Borrowing
This lesson discusses the mechanism of borrowing through reference in Rust. Instead of transferring ownership, the function can lend access to the data using the '&' symbol. Rust…
02
Rust Data Structures
6 lessons
01
Rust Data Structures
This lesson provides an overview of the data structures available in Rust to group several values. Rust distinguishes static data structures in stacks such as arrays and tuple,…
02
Rust Arrays
This lesson reviews an array in Rust that is a set of elements of the same type with a fixed length. Because it's stored in stacks, the array is very fast and efficient. The…
03
Rust Vectors
This lesson discusses Vectors (Vec<T>) which is the most commonly used dynamic array in Rust. Vectors store their elements sequentially in memory heap, so that their size can be…
04
Rust Tuples
This study reviews Tuple's data types in Rust that are useful for combining a set of values with different data types into one compound unit. Tuples have a fixed length after…
05
Rust HashMap
This lesson reviews the hashmap data structure in Rust that stores key and value pairs. The key must be unique and apply hashing functionality to instantaneous data search.…
06
Rust Structs
This lesson paints Struct which is the foundation for creating custom object-oriented data types in Rust. Struct allows for the grouping of data with meaningful attribute names.…