macro_rules! cl {
($id:ident!) => { ... };
($($id:ident)::*!) => { ... };
($fst:ident $($id:ident)*!) => { ... };
($id:ident) => { ... };
($($id:ident)::*) => { ... };
($fst:ident $($id:ident)*) => { ... };
}Expand description
cl stands for code link
use rsmack_utils::cl;
let result = cl!(proc_macro_error2::abort);
assert_eq!(result, "[`proc_macro_error2::abort`]");
let result_macro = cl!(proc_macro_error2::abort!);
assert_eq!(result_macro, "[`proc_macro_error2::abort!`]");