concat-mulidents

Crates.ioconcat-mulidents
lib.rsconcat-mulidents
version0.1.0
sourcesrc
created_at2024-10-20 13:45:11.514647
updated_at2024-10-20 13:45:11.514647
descriptionA simple library for concatenating multiple identifiers
homepage
repositoryhttps://github.com/cradiy/concat_mulidents.git
max_upload_size
id1416216
size2,598
Cradiy (cradiy)

documentation

README

Concatenates multiple identifiers.

Usage

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();
}

Commit count: 7

cargo fmt