How traits can avoid incomprehensible compiler error messages when invoking generic functions
How the bounding of a generic parameter can be monolithic, or it can be broken up into several traits
What little you can do with an unbounded generic parameter
How traits create a scope for the functions they contain
How to create traits containing multiple methods
How to bound generic parameters to multiple traits
How to use trait inheritance
How to use traits to add methods to external types
How to implement the standard ...
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
C. MilanesiBeginning Rusthttps://doi.org/10.1007/978-1-4842-7208-4_1919. Using Traits
Carlo Milanesi1
(1)
Bergamo, Italy
In this chapter, you will learn:
Get Beginning Rust: Get Started with Rust 2021 Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.