- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AINeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Structs, Enums and Traits
Model data with structs and enums, match on patterns, handle Option and Result, and share behavior with traits and generics.
Try Rust online8 lessons
Methods and impl Blocks
Attach functions to a struct with impl, including constructors.
View lesson →Pattern Matching with match
Compare a value against patterns with match, guards and if let.
View lesson →Option: Values That May Be Missing
Represent a missing value with Option instead of null.
View lesson →Error Handling with Result
Return errors as values with Result and pass them on with the ? operator.
View lesson →