Tag: generics
All the articles with the tag "generics".
-
Implementing the Display Trait on a Generic Array using Newtype Pattern
How to implement the Display trait on a generic array in Rust, working around the orphan rule with the newtype pattern and const generics.
-
How to Use Rust Traits, Generics and Bounds
Refactoring Ruxel's vector and point types with generics, supertraits, subtraits and trait bounds to make the code more idiomatic and extensible.