Ownership & Borrowing
The heart of Rust: moves, Clone/Copy, references, the borrow checker, and slices for market data windows.
Submodule 2.1
Ownership Core
Stack, heap, moves, and Copy types.
- 122 min
Stack, Heap & String
Where data lives, why String is different from string literals, and what Drop means.
- 224 min
Move Semantics
Assignment and function calls move non-Copy values; fix errors with clone or redesign.
- 318 min
Copy, Clone & Drop
When values duplicate cheaply, when clone is explicit, and when drop runs.
Submodule 2.2
Borrowing & References
Shared and mutable references, and the exclusive-mut rule.
- 120 min
Immutable Borrows (&T)
Read data without taking ownership — the default for helpers and metrics.
- 222 min
Mutable Borrows (&mut T)
Exclusive write access — update positions and books safely.
- 318 min
Reading Borrow Checker Errors
Hand-holding through the most common compile errors and how to fix them.
Submodule 2.3
Slices & Views
String slices and array slices for windows of prices.
- 120 min
String Slices (&str)
Views into string data — parsing symbols and message prefixes without copy.
- 222 min
Array/Slice Windows for Prices
&[T] views, slicing ranges, and SMA without copying the whole series.
- 325 min
Module 2 Lab: Quote Toolkit
Combine ownership ideas into a small quote helper library.