Rust 71 🦀 Operator Overloading via std::ops Traits
Rust does not allow you to invent new operators or overload arbitrary syntax. What it allows is a carefully bounded form of operator overloading: certain operators are tied to specific traits in std::ops, and implementing those traits for your type defines what the operator means for that type . The + operator is syntactic sugar…