Macro byte_strings::const_::concat_bytes[][src]

macro_rules! concat_bytes {
    () => { ... };
    ($single : expr $(,) ?) => { ... };
    ($first : expr $(, $rest : expr) + $(,) ?) => { ... };
}
Expand description

const-friendly version of concat_bytes!.

#[macro_use]
extern crate byte_strings;

const GREETING: &str = "Hello";
const MESSAGE: &[u8; 13] = const_concat_bytes!(GREETING, ", World!");