Tag - 1 post


Anatomy of a generic function in Rust

By Ish Sookun in Rust on 22 February 2020

It can handle different input types and thus it's called a generic function. The generic type is represented by the capital letter T in this example. T is an arbitrary placeholder. It could be have been another letter, X, Y or V......