checktrait

Crates.iochecktrait
lib.rschecktrait
version0.1.5
created_at2025-06-19 12:02:21.892666+00
updated_at2025-06-19 12:02:21.892666+00
descriptionSimple tool for trait implementation check
homepage
repositoryhttps://github.com/mincomk/checktrait
max_upload_size
id1718258
size5,177
minco (mincomk)

documentation

https://docs.rs/checktrait

README

header build

Simple tool for compile-time check trait

Installation

cargo add --dev checktrait

Usage

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);
Commit count: 13

cargo fmt