same-types 0.1.1

Ensure that two types are the same.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented2 out of 3 items with examples
  • Size
  • Source code size: 15.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 521.99 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Kijewski/tupleops
    17 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Kijewski-crates-graveyard

Ensure that two types are the same, or fail with a compilation error.

use same_types::assert_same_types;

assert_same_types!(u32, u32, u32, u32);
use same_types::assert_same_types;

// Fails with the message:
// the trait `SameTypes` is not implemented for `(i32, u32)`
assert_same_types!(u32, u32, i32, u32);