4 ms·
C++ classes are types. Rust traits are applied to types.
by bitwize 1y ago
C++ classes are types. Rust traits are applied to types.
- Kranar 1y agoAnd what exactly do you think traits apply to types exactly? If your answer doesn't start with an "m" and end with a "ethod", then you may need to re-read the Rust book found here: https://doc.rust-lang.org/book/ch10-02-traits.html https://doc.rust-lang.org/book/ch10-02-traits.html