What is a trait in Rust, and how does it differ from a class in object-oriented languages?
Naresh Beniwal