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