Skip to content

Glossary: Rust Beyond the Basics

trait bound

Also written: trait bounds, bound

A rule on a type parameter saying what it must implement, like `T: PartialOrd`. Several bounds are joined with `+`.

Where the book teaches it

Related terms

genericwhere clause