True polymorphism using trait objects

Rust allows a true form of polymorphism through special forms of types implementing a trait. These are known as trait objects. Before we explain how Rust achieves polymorphism using trait objects, we need to understand the idea of dispatch.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset