Rust Foundations
From zero to comfortable: mental model, printing, variables, types, functions, and control flow — with finance-flavored examples at every step.
Submodule 1.1
Getting Started
Why Rust, how programs run, and your first outputs.
- 118 min
Why Rust for Finance?
Memory safety, speed, and reliability — why quants and trading systems pick Rust over Python/C++/Java.
- 220 min
Printing & Formatting
Master println!, format!, debug {:?} prints, and numeric formatting you’ll use for prices and rates.
- 315 min
Comments, Style & Cargo Mindset
How Rust projects are organized locally, what the playground can/can’t do, and how to write readable quant code.
Submodule 1.2
Variables & Types
Immutability, scalars, inference, and casting for market data.
- 122 min
Variables, mut & Shadowing
let, mut, shadowing, and constants — immutability by default as a risk control.
- 224 min
Scalar Types Deep Dive
Integers, floats, bools, chars — choosing types for prices, sizes, and flags.
- 320 min
Tuples & Arrays Intro
Fixed-size groups of values: quote pairs, OHLC bars, and small matrices of numbers.
Submodule 1.3
Functions & Control Flow
fn, if expressions, loops, and early returns.
- 122 min
Functions & Return Values
Write reusable pricing helpers: parameters, returns, and expression-bodied functions.
- 218 min
if / else as Expressions
Branching with equal types in both arms — classify trades, regimes, and signs.
- 324 min
loop, while, and for
Iterate scenarios, days, and Monte Carlo seeds — break, continue, and ranges.
- 425 min
Module 1 Practice Lab
Capstone mini-lab: mini blotter combining variables, functions, formatting, and loops.