3 ms·
Cough!, void pointer, cough! Traits are used to express generality, when you need it. If you don't need to be generic over your input, you don't need traits. A
by littlestymaar 9y ago
Cough!, void pointer, cough!
Traits are used to express generality, when you need it. If you don't need to be generic over your input, you don't need traits. And when you need it, Rust makes it more explicit than C (and also more performant because it's statically dispatched by default).