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