In Rust, there are various traits available that can be implemented which allow you to overload various operators.
Documentation for core::ops module