splithex_then_combine!() { /* proc-macro */ }Expand description
Same as splitbits_then_combine!, except with hexadecimal digits in the template.
use splitbits::splithex_then_combine;
let output = splithex_then_combine!(
0xCDEF_0000, "xxxx ..yy",
0xBA98_1111, "zz.. ....",
"xxxx 0123 ABCD yyzz",
);
assert_eq!(output, 0xCDEF_0123_ABCD_00BA);