Traits (base classes)
📄️ Overview
As we know, trait is an important feature of Rust.
📄️ Trait definitions
The trait definitions will be automatically converted to Dart abstract classes.
📄️ Trait implementations
The impl A for B is supported, and is translated to a class B implements A.
📄️ Trait objects / dyn T / Arbitrary implementers
The type &dyn MyTrait, where MyTrait is a trait, is supported.