3 ms·
It's probably also partly because of Rust's "zero-cost abstractions" — you can create helper structs and wrappers, and not have to worry about it, unlike e.g. C
by LoganDark 4y ago
It's probably also partly because of Rust's "zero-cost abstractions" — you can create helper structs and wrappers, and not have to worry about it, unlike e.g. C++, which really likes to use object-oriented design patterns. And of course traits really do help with swapping out implementations depending on platform, but I think the real benefit is the use of structs instead of objects. They're no longer magic entities designed to be heap-allocated, they are just data — value types.
Oh and the borrow checker is good too.