Everything behind a trait?

52 points Humble-Helicopter-43

Hi, I mostly have an OOP background where mostly the "best practice" is to use interfaces for classes and pass them.

Is it a good idea to apply the same principle in Rust? Ofcourse if we want to share behaviour thats a good idea. But I was wondering if this is a common practice.

Ps: Might be a dumb question 😕