The Slice Type String Slices String Literals Are Slices String Slices as Parameters Other Slices Summary The Slice Type Another data type that does not have ownership is t...
The match Control Flow Construct Patterns that Bind to Values Matching with Option Matches Are Exhaustive Catch-all Patterns and the _ Placeholder The match Contro...
Developing the Library’s Functionality with Test-Driven Development Writing a Failing Test Writing Code to Pass the Test Iterating Through Lines with the lines Method Searching...
Data Types Scalar Types Integer Types Floating-Point Types Numeric Operations The Boolean Type The Character Type Compound Types The Tuple Type The Array Type Accessing Arra...
Defining an Enum Enum Values The Option Enum and Its Advantages Over Null Values Defining an Enum Where structs give you a way of grouping together related fields and data,...