Add implied bounds to your traits by adding Imply as a super trait:
trait Bound {}
trait MyTrait<T>: Imply<T, Is: Bound> {} // Implies T: BoundWorks with Rust 1.79+.
For more information, see the documentation.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Add implied bounds to your traits by adding Imply as a super trait:
trait Bound {}
trait MyTrait<T>: Imply<T, Is: Bound> {} // Implies T: BoundWorks with Rust 1.79+.
For more information, see the documentation.