Structs, Enums, and Protocols
摘要
Structs, enums, and protocols are all fundamental types. They have different strengths and weaknesses, and the best choice for a particular task depends on its specific requirements and how the type will be used.