4: Structs, Interfaces, Enums, and Collections
Sub-files
- core.md — Structs, Self, Constructors, Generics, Interfaces (~645 lines)
- §4.1: Structs
- §4.2: The
SelfKeyword - §4.3: Constructors
- §4.4: Generics
- §4.5: Interfaces
- §4.5.1: The
PartialEq[T]andEq[T]Interfaces - data-types.md — Enums, Tuples, Collections, Type Aliases (~740 lines)
- §4.6: Enums
- §4.6.1: Simple Enums
- §4.6.2: Enums with Associated Data
- §4.6.3: Generic Enums
- §4.6.4: Built-in Enums
- §4.7: Tuples
- §4.8: Collections
- §4.8.1: Lists
- §4.8.2: Maps
- §4.8.3: Sets
- §4.8.4: Collection Literals
- §4.9: Type Aliases
Topic Cross-References
- Interfaces: defined here (§4.5 core.md), built-in interfaces in stdlib/interfaces.md
- Enums: defined here (§4.6 data-types.md), built-in enums in stdlib/types.md, pattern matching in types.md (§3.1)
- Collections: syntax here (§4.8 data-types.md), API in stdlib/types.md, destructuring in semantics/patterns.md (§2.14)
- Tuples: defined here (§4.7 data-types.md), prelude details in stdlib/types.md
- Generics: defined here (§4.4 core.md), variance rules in semantics/functions.md (§2.6)