Associated Types vs Generics in Traits
Instead of generic parameters in traits, Rust also allows associated types: If you’re new to Rust the first time you see associated types may be with the Iterator trait Example – the associated type is on line 2 Why use associated types? The benefit may become clearer with more functions? Here you can see there […]