1.
Hello, World
2.
Scratchpad 2
3.
Scratchpad
3.1.
Your Turn
4.
The Status Line
5.
Quick Notes
6.
Variables
7.
Printing Variables
7.1.
Step By Step
7.2.
Your Turn
8.
Printing Multiple Variables
8.1.
Step By Step
9.
Printing Variables - Alternate Syntax
10.
Printing Multiple Variables - Alternate Syntax
11.
Mutable Variables
11.1.
push_str()
11.2.
Step By Step
11.3.
Your Turn
12.
Variables Names With _ Underscores
13.
Functions
13.1.
No Arguments - No Return
13.1.1.
Step By Step
13.1.2.
Your Turn
13.2.
With Arguments - No Return
13.2.1.
Step By Step
13.2.2.
Your Turn
13.3.
No Arguments - With Return
13.3.1.
Step By Step
13.3.2.
Your Turn
13.4.
With Arguments - With Return
13.4.1.
Step By Step
13.4.2.
Your Turn
14.
Ownership
14.1.
Step 1
14.2.
Step 2
14.3.
Step 3
14.4.
What Doesn't Happen
14.5.
Step 4 - What Does Happen
14.6.
Step 5
14.6.1.
Step By Step
14.6.2.
Your Turn
14.7.
Hitting A Moved Error
14.7.1.
Your Turn
14.8.
Moving Error Details
15.
References
15.1.
Setp By Step
15.2.
Your Turn
15.3.
Step 1
15.4.
Step 2
15.5.
Working Example
15.6.
Multiple References
15.6.1.
Step By Step
15.6.2.
Your Turn
16.
Cheatsheet
DRAFTS
17.
Drafts
18.
Errors - panic!() and Result
19.
panic!()
19.1.
Identifying panic!() Errors
19.2.
Causing panic!() Errors
20.
Result (Error Handling)
20.1.
Step By Step
21.
Result And Option
22.
Function Argument References
22.1.
With Variables
22.2.
Error Example
23.
Mutable Function Argument References
24.
Structs
24.1.
Step By Step
24.2.
Your Turn
25.
Mutalbe Struct Instances
25.1.
Step By Step
25.2.
Your Turn
26.
Passing Structs To Functions
26.1.
Step By Setp
26.2.
Your Turn
27.
Passing Mutalbe Structs To Functions
27.1.
Step By Step
27.2.
Your Turn
28.
Option Type
28.1.
Option Page 2
28.2.
Your Turn
29.
Struct Methods
30.
Enums
31.
Vecs
32.
Strings
32.1.
Strings Original Text
32.2.
Mutable Strings
32.3.
To Examine
33.
Hash Maps
Prototypes
34.
Prototype 1
Scratchpad
Pending
35.
Ownership Stuff
35.1.
Function Moves
35.2.
Function Move Errors
36.
If Expressions
36.1.
If/Else
37.
Comparison Operators
38.
Variables With If Expressions
38.1.
println! Variables
39.
Data Types
39.1.
i32
40.
Function Arguments
41.
Program: NAME TKTKTKT
42.
Immutable Variables
42.1.
Assigning Twice Error
43.
Mutable Variables
44.
Program: NAME TKTKTKT V2
45.
for Loops With Ranges
45.1.
With Variables
46.
Arithmetic Operators
46.1.
Division Operator
46.2.
Remainder Operator
46.3.
With Comparison Operators
46.4.
Comparison Operators With Variables
46.5.
Using The Remainder
46.6.
Using The Remainder V2
47.
Booleans
47.1.
In Conditionals
48.
Function Return Values
48.1.
Different Types
48.2.
Returning From if
48.3.
Functions As Conditions
49.
Program 3 NAME TKTKTKT
50.
Scopes
51.
Difficulty Increasing
52.
Illustrations Incoming
53.
References Old
54.
Mutable References
Holding Drafts
55.
References Holding
55.1.
A Single Value
55.2.
Using In A Function
55.3.
Changing In A Function
55.4.
A Function Error
56.
Ownership And Moving
56.1.
Moving Error
57.
Cloning
57.1.
Separate Values
58.
Binding Values From if
58.1.
Must Be The Same Type
58.2.
Mismatched Type Error
59.
Sandbox
Holding
60.
While Loops
61.
Variables In println!
Holding
62.
String
63.
Vec
64.
Else If Expressions
65.
Assignment Operators
65.1.
Examples
65.2.
Division
65.3.
Remainder
66.
Arithmetic Stuff
Original Versions
67.
Data Types
67.1.
Implicit And Explicit
67.2.
Using Explicit Types
67.3.
The Number Types
67.4.
Booleans
68.
Compound Data Types
68.1.
Tuples
68.2.
Tuple Indexes
68.3.
Indexes And Offsets
69.
Functions
69.1.
Parameters
69.2.
Using Parameters
69.3.
Multiple Parameters
69.4.
Using Multiple Parameters
69.5.
Return Values
69.6.
Binding Return Values
69.7.
Return Expressions
69.8.
Return Expression Errors
69.9.
Review
70.
if Expressions
70.1.
false Conditions
70.2.
else Expressions
70.3.
else if Expressions
70.4.
Multiple if else Expressions
70.5.
Function Example
70.6.
Binding Variables
70.7.
Binding Values Must Be The Same
70.8.
Incompatible Types
71.
While Loops
71.1.
Assignments
72.
For Loops
72.1.
Using Ranges
73.
if let placeholder
Cards
74.
Error Messages In Tutorials
75.
Messing With The Code
76.
Preamble
Stuff To Sort
77.
The String Type
77.1.
Moving String
78.
Functions Placeholder
78.1.
Passing Values In Functions
78.2.
Function References
78.3.
Function References Can't Be Modified
78.4.
Function Mutable References
78.5.
Only One Mutable Reference
78.6.
Scope For Mutable References
78.7.
Mutable And Immutable References Can't Be Combined
78.8.
TODO
Needs Spell Check
79.
Slices TODO
80.
String literals
81.
Tuple Structs
82.
Debug Derived Trait
83.
match
83.1.
Step By Step
83.2.
Passing Values
84.
match drafts
To Sort
85.
Scope
85.1.
Scope Error
85.2.
Scope Error Message
Misc
86.
Guildlines
-- Work In Progress --
87.
Work In Progress
88.
TODO List
89.
Statements and Expressions
90.
Constants
90.1.
In The Global Scope
90.2.
Types Required
90.3.
Compile Time
91.
Shadowing Variables
91.1.
Shadowing Variables In Scope
91.2.
Shadowing Variables To Change Type
92.
Characters
93.
Destructuring Tuples
94.
Adding Values To Tuples
95.
Arrays
96.
Statements And Expressions
97.
Option Type
Work In Progress
98.
Prerequisites
99.
About This Site
100.
Glossary
101.
Typo Test
102.
Work In Progress
102.1.
Turning Off Warnings
102.2.
The Error Message
103.
Error Messages
104.
Variables - Origian with types
105.
if let
To Sort
106.
Loops
106.1.
Binding Values
106.2.
Labels
106.3.
Nested Loops
Holding
107.
Enum Type Aliases
Fizz Buzz
108.
Fizz Buzz
For Review
109.
Hello, World - The Parts
110.
A Complete Program
Sandbox
Typing Rust
This is the original place I made these notes.
I'm moving them over to
rust-notes.alanwsmith.com