Skip to content

Glossary: Rust Beyond the Basics

dyn

Also written: dyn Trait

The keyword used for a trait object, as in `&dyn Shippable`, meaning some value of any type that implements the trait, with the method found while the program runs.

Where the book teaches it

Related terms

trait object