Objectoriented Programming Features - Rust - Complete Documentation by ntxm.org

Trait Objects for Polymorphic Code

How to achieve runtime polymorphism in Rust using trait objects, the rules of object safety, the mechanics of dynamic dispatch.

Implementing an Object-Oriented Design Pattern

Walk through implementing the state pattern in Rust using trait objects and an alternative type-driven approach, illustrated by a blog post workflow.