2 ms·
That's no problem in Rust. You can have a Speed type and a Time type, and define the multiplication operator over them to return a Length value. In fact, there'
by adwn 1y ago
That's no problem in Rust. You can have a Speed type and a Time type, and define the multiplication operator over them to return a Length value. In fact, there's already a library which does exactly that, with tons of predefined SI units: https://docs.rs/uom/latest/uom/ https://docs.rs/uom/latest/uom/
- grg0 1y agoAnd the exact same thing can be done in C++.