OOP & Trait Objects

This map covers Rust’s object-oriented features: encapsulation, trait-based polymorphism, dispatch choices, and state-pattern designs without class inheritance.

Concepts

Patterns

Antipatterns

See also

Traits · Generics · Trait Bounds · Dynamically Sized Types · Box · Enums · Making Invalid States Unrepresentable · Default Implementations

Sources