Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 303 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 303 Bytes

imply-hack: Implied bounds, since 1.79!

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.