type-sets 0.1.1

Sets implemented in the rust type-system
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// A macro for creating a [`Set`] of types.
///
/// Examples of valid sets include:
/// - `Set!()` - an empty set  (`Set<()>`)
/// - `Set!(A, B, C)` - a set containing types A, B, and C (`Set<(A, B, C)>`)
#[macro_export]
macro_rules! Set {
    ($($es:ty),* $(,)?) => {
        $crate::Set<($($es,)*)>
    };
}