Feature gate: #![feature(concat_bytes)]
This is a tracking issue for rust-lang/rfcs#2509
Public API
#[macro_export]
macro_rules! concat_bytes { .. }
Steps / History
Unresolved Questions
- Should additional literal types be supported? Byte string literals are basically the same thing as byte slice references, so it might make sense to support those as well (support
&[0, 1, 2] in addition to [0, 1, 2]).
- What to do with string and character literals? They could either be supported with their underlying UTF-8 representation being concatenated, or rejected.
Feature gate:
#![feature(concat_bytes)]This is a tracking issue for rust-lang/rfcs#2509
Public API
Steps / History
concat_bytes!()to join[u8]and bytestranalogous toconcat!forstrrfcs#2509Unresolved Questions
&[0, 1, 2]in addition to[0, 1, 2]).