Structs Enums And Pattern Matching
Structs
- Defining And Instantiating Structs
- Method Syntax
- Struct Layout And Generic Structs
- Deriving Common Traits For Struct Types
- Interior Mutability
- Use The Type System To Express Data Structures
- Use Builders For Complex Types
- Embrace The Newtype Pattern
Enums
- Defining Enums
- The Match Control Flow
- If Let Concise Control Flow
Patterns And Matching
- All Places Patterns Can Be Used
- Refutability Whether A Pattern Might Fail To Match
- Pattern Syntax
- Populating A Binary Tree Using Patterns