imply-hack

Crates.ioimply-hack
lib.rsimply-hack
version0.1.0
sourcesrc
created_at2024-11-25 16:17:45.892046
updated_at2024-11-25 16:17:45.892046
descriptionImplied bounds, since 1.79!
homepage
repositoryhttps://github.com/gtsiam/imply-hack
max_upload_size
id1460465
size6,425
(gtsiam)

documentation

README

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.

Commit count: 1

cargo fmt