Generics (Rust)

Generics let you write functions, structs, and enums that work over many types using type parameters like <T>. Rust monomorphizes them at compile time, so…