1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-10 00:26:07 +02:00
rustlings/exercises/14_generics
Adam Brewer 64d95837e9 Update Exercises Directory Names to Reflect Order 2023-10-16 07:37:12 -04:00
..
README.md Update Exercises Directory Names to Reflect Order 2023-10-16 07:37:12 -04:00
generics1.rs Update Exercises Directory Names to Reflect Order 2023-10-16 07:37:12 -04:00
generics2.rs Update Exercises Directory Names to Reflect Order 2023-10-16 07:37:12 -04:00

Generics

Generics is the topic of generalizing types and functionalities to broader cases. This is extremely useful for reducing code duplication in many ways, but can call for rather involving syntax. Namely, being generic requires taking great care to specify over which types a generic type is actually considered valid. The simplest and most common use of generics is for type parameters.

Further information