rustlings/exercises/14_generics
kingecg c40d940946 at strings 2025-09-23 22:33:47 +08:00
..
README.md at strings 2025-09-23 22:33:47 +08:00
generics1.rs at strings 2025-09-23 22:33:47 +08:00
generics2.rs at strings 2025-09-23 22:33:47 +08:00

README.md

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 some rather involved 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