| Crates.io | checktrait |
| lib.rs | checktrait |
| version | 0.1.5 |
| created_at | 2025-06-19 12:02:21.892666+00 |
| updated_at | 2025-06-19 12:02:21.892666+00 |
| description | Simple tool for trait implementation check |
| homepage | |
| repository | https://github.com/mincomk/checktrait |
| max_upload_size | |
| id | 1718258 |
| size | 5,177 |
Simple tool for compile-time check trait
cargo add --dev checktrait
Check implementation with checktrait::* macros.
The macro will fail to compile if the object/type does not implement the trait.
checktrait::ty!(MyTrait, MyType);
checktrait::obj!(MyTrait, MyObj);