Sanjeevisanjeevi.hashnode.dev·Jan 26, 2024Generics and const generics in RustNormally we write a function or any user-defined type for solving a particular task by accepting Concrete type i.e the type is known when we pass it to them. fn sum_i32(i: &[i32]) -> i32 { i.iter().sum() } fn sum_f32(i: &[f32]) -> f32 { i.ite...30 readsRustAdd a thoughtful commentNo comments yetBe the first to start the conversation.