5 ms·
Does that essentially overload + for it?
by shmerl 7y ago
Does that essentially overload + for it?
- saghm 7y agoYes; Rust uses traits to implement behavior for operators on custom types (see the full list here: https://doc.rust-lang.org/std/ops/#traits https://doc.rust-lang.org/std/ops/#traits)