Tag: trait
All the articles with the tag "trait".
-
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.
-
Ruxel - Building a Ray Tracer with Rust Part 1
Part 1 of building Ruxel, a ray tracer in Rust: high-level architecture, project scaffolding, and the vector and point types.