Watch
1
0
Fork
You've already forked rustlings
0
rustlings/exercises/14_generics
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-18 19:06:05 +00:00
..
generics1.rs Initial commit 2025-12-18 19:06:05 +00:00
generics2.rs Initial commit 2025-12-18 19:06:05 +00:00
README.md Initial commit 2025-12-18 19:06:05 +00: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 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