Crates.io | gensym |
lib.rs | gensym |
version | 0.1.1 |
source | src |
created_at | 2019-01-19 18:18:26.154298 |
updated_at | 2023-08-05 21:28:09.212535 |
description | Creates unique identifiers for macros using procedural macros |
homepage | |
repository | https://github.com/regiontog/gensym |
max_upload_size | |
id | 109553 |
size | 19,354 |
Creates unique identifiers for macros using procedural macros and UUID
macro_rules! gen_fn {
($a:ty, $b:ty) => {
gensym::gensym!{ _gen_fn!{ $a, $b } }
};
}
macro_rules! _gen_fn {
($gensym:ident, $a:ty, $b:ty) => {
fn $gensym(a: $a, b: $b) {
unimplemented!()
}
};
}
mod test {
gen_fn!{ u64, u64 }
gen_fn!{ u64, u64 }
}