joined_array

Macro joined_array 

Source
macro_rules! joined_array {
    ($array:expr, $sep:expr) => { ... };
    ($array:expr, $sep:expr, $size:expr) => { ... };
}
Expand description

Returns a buffer ([u8; N]) that contains the joined string as bytes.

Example usage:

let s: [u8; _] = const_str_join::joined_array!(["A", "B", "C"], "<>");
assert_eq!(&s, b"A<>B<>C")