assert_bound 0.1.1

Simple create that helps in asserting type bounds
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented2 out of 2 items with examples
  • Size
  • Source code size: 8.36 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 643.17 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • WaffleLapkin/assert_bound
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • WaffleLapkin

assert_bound

Simple rust lib for type assertions.

Examples

use assert_bound::assert_bound;

// assert that `()` implements Debug + Ord + PartialEq<()>
assert_bound!(() => std::fmt::Debug + Ord + PartialEq<()>);

// f32/f64 doesn't implement `Eq`, so rustc will 
// fail to compile next line if it you uncomment it
// assert_bound!(0.1 => Eq);