#[allow(unused)]
pub mod unit_copy {
macro_rules! make_unit_struct {
($($Name:ident)*) => {$(
#[derive(Debug, Copy, Clone, Eq, PartialEq, PartialOrd, Ord, Hash, Default)]
pub struct $Name;
)*};
}
// Feel free to add more as necessary
make_unit_struct! {A B C D E F}
}
#[allow(unused)]
pub mod unit_move {
macro_rules! make_unit_struct {
($($Name:ident)*) => {$(
#[derive(Debug, Clone, Eq, PartialEq, PartialOrd, Ord, Hash, Default)]
pub struct $Name;
)*};
}
// Feel free to add more as necessary
make_unit_struct! {A B C D E F}
}
#[allow(unused)]
pub mod i32_copy {
macro_rules! make_unit_struct {
($($Name:ident)*) => {$(
#[derive(Debug, Clone, Eq, PartialEq, PartialOrd, Ord, Hash, Default)]
pub struct $Name(pub i32);
)*};
}
make_unit_struct! {X Y Z}
}
#[allow(unused)]
pub mod i32_move {
macro_rules! make_unit_struct {
($($Name:ident)*) => {$(
#[derive(Debug, Clone, Eq, PartialEq, PartialOrd, Ord, Hash, Default)]
pub struct $Name(pub i32);
)*};
}
make_unit_struct! {X Y Z}
}