Open
Description
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
- RFC: RFC: Introduce
concat_bytes!()
to join[u8]
and bytestr
analogous toconcat!
forstr
rfcs#2509 - Implementation: Implement concat_bytes! #87599
- Final comment period (FCP)
- Stabilization PR
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.