The language
Fourteen chapters, a concept each, with the samples that show it.
- Bindings -
let,const, and the compile-time evaluator. - Types - primitives,
Array,Option,Result, tuples, function values, conversions, and what copies. - Functions and traits - signatures, default arguments, generics,
impl, trait bounds,dyn,unsafe. - Closures - capturing, the closure that can be called once, and sharing one.
- Structs, variants and enums - the product type, the two sum types, recursion, and equality.
- Control flow - expressions everywhere,
for, and pattern matching. - Ownership - moves, the clone rule, and drop.
- Borrowing - parameters borrow by default, and the clause that says the rest.
- Lifetimes - the inferred region, and what a view may do.
- Returned borrows - a parameter handed back, the arguments it is tied to, and where the compiler copies.
- Concurrency - fibers, threads, channels, locks and atomics.
- Errors -
Option,Result,?, and what a panic is. - Strings - text as UTF-8 bytes, templates, and formatting.
- Modules and packages - one file one module,
use,talor.mod,talor build.
The standard library has a section of its own: Math lists std.math and the methods of f64.