Explore Library
RustIntroduction & Core Concepts

69 items

1

Statements vs Expressions

Quiz
2

Function Return Values

Quiz
3

Declaring Constants

Quiz
4

Rust's Core Design Goals

Quiz
5

Building with rustc and Cargo

Quiz
6

println! Is a Macro

Quiz
7

Type Inference and Annotations

Quiz
8

Scalar Types in Rust

Quiz
9

Documentation Comments

Quiz
10

Loops and break/continue

Quiz
11

Tuples and Arrays

Quiz
12

Variable Shadowing

Quiz
13

Immutability by Default

Quiz
14

The main Function

Quiz
15

if as an Expression

Quiz
16

Cargo: Rust's Build System & Package Manager

Slides / Video
17

Compiling a Program with rustc

Slides / Video
18

Your First Rust Program: Hello World

Slides / Video
19

Installing Rust with rustup

Slides / Video
20

Where Rust Is Used in Industry

Slides / Video
21

History and Origin of Rust

Slides / Video
22

What Rust Is and Its Design Goals

Slides / Video
23

Rust Scalar Data Types

Slides / Video
24

Constants and Shadowing in Rust

Slides / Video
25

Variables and Mutability in Rust

Slides / Video
26

Anatomy of a Rust Program

Slides / Video
27

Type Annotation Mismatch

Code Quiz
28

Declaring a Constant

Code Quiz
29

Accessing a Tuple Element

Code Quiz
30

Statement Used as Expression

Code Quiz
31

Declaring a Variable with let

Code Quiz
32

Immutable by Default

Code Quiz
33

The char Scalar Type

Code Quiz
34

The Program Entry Point

Code Quiz
35

Missing Format Argument

Code Quiz
36

Writing a Comment

Code Quiz
37

if Condition Must Be Bool

Code Quiz
38

String vs &str

Code Quiz
39

Shadowing vs mut

Code Quiz
40

Defining a Function

Code Quiz
41

Returning a Value

Code Quiz
42

A while Loop That Never Ends

Code Quiz
43

Comparison vs Assignment

Code Quiz
44

Macros Need the Bang

Code Quiz
45

Rust: Compiled and Statically Typed

Slides / Video
46

Printing Output with println!

Slides / Video
47

Comments and Documentation in Rust

Slides / Video
48

let and Immutability

Flashcard
49

Compound Data Types

Flashcard
50

Comments and Doc Comments

Flashcard
51

if/else Control Flow

Flashcard
52

Compiling with rustc

Flashcard
53

Constants with const

Flashcard
54

Scalar Data Types

Flashcard
55

Loops: loop, while, for

Flashcard
56

Type Inference and Annotations

Flashcard
57

Statements vs Expressions

Flashcard
58

Defining Functions

Flashcard
59

Mutable Variables with mut

Flashcard
60

Variable Shadowing

Flashcard
61

Basic Program Structure

Flashcard
62

Cargo Build System

Flashcard
63

Printing with println!

Flashcard
64

Installing Rust with rustup

Flashcard
65

Macros vs Functions

Flashcard
66

What Rust Is

Flashcard
67

Rust Functions and Return Values

Slides / Video
68

Type Inference & Annotations in Rust

Slides / Video
69

Rust Tuples and Arrays

Slides / Video
Code QuizBeginner

Comparison vs Assignment

Identify the operator mistake in this condition.

Coderust
fn main() {
    let a = 5;
    if a = 5 {
        println!("equal");
    }
}

What is the bug in this code?