Generics
Generic types, trait bounds, and type parameters.
5 examples
BasicsOwnershipCompound TypesFlow ControlFunctionsGenericsTraitsError HandlingCollectionsConcurrencyAsyncSmart PointersIteratorsPatternsModulesMacrosUnsafeLifetimesTestingFile I/OSerializationCLI
intermediate5 examples
Generic Enums
Standard library generic enums like Option and Result.
Generic Function
Write functions that work with multiple types using generics.
Generic Struct
Define structs with generic type parameters.
Multiple Generic Parameters
Use multiple type parameters in functions and structs.
Trait Bounds
Constrain generic types with trait bounds.