add pair_of! macro

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-31 00:54:00 +00:00
parent f698254c41
commit e161e5dd61

View file

@ -84,6 +84,17 @@ macro_rules! apply {
};
}
#[macro_export]
macro_rules! pair_of {
($decl:ty) => {
($decl, $decl)
};
($init:expr) => {
($init, $init)
};
}
/// Functor for truthy
#[macro_export]
macro_rules! is_true {