Crates.io | concat-mulidents |
lib.rs | concat-mulidents |
version | 0.1.0 |
source | src |
created_at | 2024-10-20 13:45:11.514647 |
updated_at | 2024-10-20 13:45:11.514647 |
description | A simple library for concatenating multiple identifiers |
homepage | |
repository | https://github.com/cradiy/concat_mulidents.git |
max_upload_size | |
id | 1416216 |
size | 2,598 |
use concat_mulidents::concat_idents;
macro_rules! concat_test {
($name:ident, $name2:ident) => {
concat_idents! {
fn $name--_--$name2() {
let $name--$name2 = "Hello, World!";
println!("{}", $name--$name2);
}
}
};
}
fn main () {
concat_test!(hello, world);
hello_world();
}