Add trait in Rust

Rust has this interesting trait called Add which allows us to use the + operator and add 2 structs together. This is very useful for numeric types but also for engineering productivity lets say you are building a DSL for instance or an internal DSL. So I made some implementation and a video - Let's get started!




The Video

The Code

https://github.com/diegopacheco/rust-playground/tree/master/Add-trait-fun

Cheers,

Diego Pacheco

Popular posts from this blog

Java Agents

Manage Work not People

HMAC in Java