rust_examples 0.1.11

rust 的学习中的一些例子
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! create_func {
    ($func_name:ident) => {
        fn $func_name() {
            println!("called funcation:{}", stringify!($func_name));
        }
    };
}
create_func!(func_one);
create_func!(func_two);
fn main() {
    func_one();
    func_two();
}