Check the demo and the GitHub repo. Edit: Since the original post some readers brought to my attention a bug that yielded incorrect decoding. This is now fixed in release v0.1.2. Thanks to ...
Implementing the Display Trait on a Generic Array using Newtype Pattern
Edit: In the original post I said that the PartialEq trait bound was required in the generic Display function implementation; however, if the last element of the array is the same as its predece...
How to Use Rust Traits, Generics and Bounds
Every time I am developing the question I am always asking myself is “is this code idiomatic, ergonomic and extendable enough?” I ask myself that question much more at the beginning, when all the ...
Ruxel - Building a Ray Tracer with Rust Part 1
This post is Part 1 in a series to share my journey in developing Ruxel, a simple Ray Tracer and 3D Renderer written in Rust, from scratch. Please see the Series Prelude for more information regar...
Rust and Neovim - A Thorough Guide and Walkthrough
Edit: Some readers mentioned an issue with the example Lua code used to configure the simrat39/rust-tools.nvim plugin; that configuration code has been updated with the example configuration rec...
Ruxel - Building a Ray Tracer with Rust (Prelude)
As far back as I can remember I have always been fascinated by 3D graphics. And building a Ray Tracer and Renderer seems like a fantastic project to sharpen my skills with Rust. So I have embarked...
Basic Operator Overloading with Traits
In this post I want to share one of my favorite characteristics about Rust: how it provides the capability to overload an operator to support arithmetic (and other) operations on our own user-defin...
- 1
- 1 / 1