checktrait 0.1.5

Simple tool for trait implementation check
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 4.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • mincomk/checktrait
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MincoMK

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);