same-types

Crates.iosame-types
lib.rssame-types
version0.1.1
sourcesrc
created_at2021-08-24 17:07:29.780873
updated_at2021-08-24 17:29:35.518374
descriptionEnsure that two types are the same.
homepagehttps://github.com/Kijewski/tupleops
repositoryhttps://github.com/Kijewski/tupleops
max_upload_size
id441771
size16,110
(Kijewski-crates-graveyard)

documentation

README

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

cargo fmt