Chapter 2
Using Generics in Rust
Section 2
Use Generic Functions to Reuse Algorithms
How can we reuse an algorithm for different types? Generic functions can help us abstract away the types in a function signature. - Understand the basic syntax of generics in functions - Know why not all types can fit into all generic functions - See how we can use a trait bound to restrict the types used in a generic function